Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 268a563

Browse files
committed
Linux: remove use of xlib.XAllPlanes()
1 parent ecb56d7 commit 268a563

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = '2.0.14'
62+
version = '2.0.15'
6363
# The full version, including alpha/beta/rc tags.
6464
release = 'latest'
6565

mss/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .exception import ScreenshotError
1414
from .factory import mss
1515

16-
__version__ = '2.0.14'
16+
__version__ = '2.0.15'
1717
__author__ = "Mickaël 'Tiger-222' Schoentgen"
1818
__copyright__ = '''
1919
Copyright (c) 2013-2016, Mickaël 'Tiger-222' Schoentgen

mss/linux.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ def _set_argtypes(self):
133133
self.xlib.XGetWindowAttributes.argtypes = [POINTER(Display),
134134
POINTER(XWindowAttributes),
135135
POINTER(XWindowAttributes)]
136-
self.xlib.XAllPlanes.argtypes = []
137136
self.xlib.XGetImage.argtypes = [POINTER(Display), POINTER(Display),
138137
c_int, c_int, c_uint, c_uint, c_ulong,
139138
c_int]
@@ -167,7 +166,6 @@ def validate(value, _, args):
167166
self.xlib.XOpenDisplay.restype = POINTER(Display)
168167
self.xlib.XDefaultScreen.restype = c_int
169168
self.xlib.XGetWindowAttributes.restype = c_int
170-
self.xlib.XAllPlanes.restype = c_ulong
171169
self.xlib.XGetImage.restype = POINTER(XImage)
172170
self.xlib.XDestroyImage.restype = c_void_p
173171
self.xlib.XCloseDisplay.restype = c_void_p
@@ -230,7 +228,7 @@ def get_pixels(self, monitor):
230228
ximage = self.xlib.XGetImage(self.display, root,
231229
monitor['left'], monitor['top'],
232230
self.width, self.height,
233-
self.xlib.XAllPlanes(),
231+
0x00ffffff,
234232
2) # ZPIXMAP
235233
if not ximage:
236234
err = 'xlib.XGetImage() failed. Monitor informations: '

0 commit comments

Comments
 (0)