forked from AuroraMiddleware/gtk
broadway: Call device vfunc to get device state
We want only one place where we get device state.
This commit is contained in:
parent
0fa32e98a4
commit
71aa55d291
@ -152,6 +152,16 @@ gdk_broadway_device_query_state (GdkDevice *device,
|
||||
gint *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
if (root_x)
|
||||
*root_x = 0;
|
||||
if (root_y)
|
||||
*root_y = 0;
|
||||
if (win_x)
|
||||
*win_x = 0;
|
||||
if (win_y)
|
||||
*win_y = 0;
|
||||
if (mask)
|
||||
*mask = 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -873,10 +873,18 @@ gdk_window_broadway_get_device_state (GdkWindow *window,
|
||||
gint *y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
*x = 0;
|
||||
*y = 0;
|
||||
*mask = 0;
|
||||
return FALSE;
|
||||
GdkWindow *child;
|
||||
|
||||
g_return_val_if_fail (window == NULL || GDK_IS_WINDOW (window), FALSE);
|
||||
|
||||
if (GDK_WINDOW_DESTROYED (window))
|
||||
return FALSE;
|
||||
|
||||
GDK_DEVICE_GET_CLASS (device)->query_state (device, window,
|
||||
NULL, &child,
|
||||
NULL, NULL,
|
||||
x, y, mask);
|
||||
return child != NULL;
|
||||
}
|
||||
|
||||
static GdkEventMask
|
||||
|
Loading…
Reference in New Issue
Block a user