@@ -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