Skip to content

Commit 25f0a32

Browse files
author
BoboTiG
committed
MSSMac: remove rotation from the returned dict
1 parent 7ba1cd3 commit 25f0a32

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mss.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,13 @@ def enum_display_monitors(self, screen=0):
266266
left, top = rect.origin.x, rect.origin.y
267267
width, height = rect.size.width, rect.size.height
268268
rot = CGDisplayRotation(display)
269-
rotation = rotations[rot]
270-
if rotation in ['left', 'right']:
269+
if rotations[rot] in ['left', 'right']:
271270
width, height = height, width
272271
yield ({
273272
b'left': int(left),
274273
b'top': int(top),
275274
b'width': int(width),
276-
b'height': int(height),
277-
b'rotation': rotation
275+
b'height': int(height)
278276
})
279277

280278
def get_pixels(self, monitor):

0 commit comments

Comments
 (0)