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:
Benjamin Otte
2012-03-09 13:20:41 +01:00
parent 50e3f532b9
commit 114b45c7eb
8 changed files with 76 additions and 93 deletions

View File

@ -177,7 +177,7 @@ gdk_device_core_warp (GdkDevice *device,
{
}
static gboolean
static void
gdk_device_core_query_state (GdkDevice *device,
GdkWindow *window,
GdkWindow **root_window,
@ -208,8 +208,6 @@ gdk_device_core_query_state (GdkDevice *device,
*win_y = wd->surface_y;
if (mask)
*mask = wd->modifiers;
return TRUE;
}
static GdkGrabStatus