Use the proper screen in _gdk_windowing_get_shape_for_mask()

Bug 615853 - BadMatch when pressing keyboard volume keys while pointer in
             secondary X screen

_gdk_windowing_get_shape_for_mask() is using the default screen, not taking
into account that its GdkBitmap could have been created for a different one,
causing BadMatch errors.
This commit is contained in:
Claudio Saavedra 2010-04-16 00:12:29 +03:00
parent 4e50724471
commit 51a1af7aa4

View File

@ -4649,7 +4649,7 @@ _gdk_windowing_get_shape_for_mask (GdkBitmap *mask)
display = gdk_drawable_get_display (GDK_DRAWABLE (mask));
window = XCreateSimpleWindow (GDK_DISPLAY_XDISPLAY (display),
GDK_SCREEN_XROOTWIN (gdk_display_get_default_screen (display)),
GDK_SCREEN_XROOTWIN (gdk_drawable_get_screen (mask)),
-1, -1, 1, 1, 0,
0, 0);
XShapeCombineMask (GDK_DISPLAY_XDISPLAY (display),