x11: Fix a trap mixup
There was a return between a push/pop of an error trap, and this managed to trigger the 'unpopped trap' warning in the displayclose test now. Fix this.
This commit is contained in:
@ -353,7 +353,10 @@ get_device_ids (GdkDisplay *display,
|
|||||||
prop = XInternAtom (GDK_DISPLAY_XDISPLAY (display), "Device Product ID", True);
|
prop = XInternAtom (GDK_DISPLAY_XDISPLAY (display), "Device Product ID", True);
|
||||||
|
|
||||||
if (prop == None)
|
if (prop == None)
|
||||||
return 0;
|
{
|
||||||
|
gdk_x11_display_error_trap_pop_ignored (display);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
rc = XIGetProperty (GDK_DISPLAY_XDISPLAY (display),
|
rc = XIGetProperty (GDK_DISPLAY_XDISPLAY (display),
|
||||||
info->deviceid, prop,
|
info->deviceid, prop,
|
||||||
|
|||||||
Reference in New Issue
Block a user