gdk: Make query_state() vfunc a void vfunc
... and make sure the backends implement it that way. query_state() return value was ignored in all of GDK and caused crashes when it failed.
This commit is contained in:
@ -238,7 +238,7 @@ get_current_mask (void)
|
||||
return mask;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
static void
|
||||
gdk_device_win32_query_state (GdkDevice *device,
|
||||
GdkWindow *window,
|
||||
GdkWindow **root_window,
|
||||
@ -303,8 +303,6 @@ gdk_device_win32_query_state (GdkDevice *device,
|
||||
|
||||
if (mask)
|
||||
*mask = get_current_mask ();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static GdkGrabStatus
|
||||
|
||||
Reference in New Issue
Block a user