forked from AuroraMiddleware/gtk
[broadway] Implement _gdk_windowing_window_at_device_position
This commit is contained in:
parent
93fec05183
commit
ec4a6c4a5f
@ -841,7 +841,25 @@ _gdk_windowing_window_at_device_position (GdkDisplay *display,
|
||||
GdkModifierType *mask,
|
||||
gboolean get_toplevel)
|
||||
{
|
||||
return NULL;
|
||||
GdkWindow *window;
|
||||
GdkWindowObject *private;
|
||||
GdkDisplayBroadway *display_broadway;
|
||||
GdkScreen *screen;
|
||||
|
||||
display_broadway = GDK_DISPLAY_BROADWAY (display);
|
||||
screen = gdk_display_get_screen (display, 0);
|
||||
window = _gdk_window_find_child_at (gdk_screen_get_root_window (screen),
|
||||
display_broadway->last_x,
|
||||
display_broadway->last_y);
|
||||
|
||||
if (window != NULL)
|
||||
{
|
||||
private = (GdkWindowObject *)window;
|
||||
*win_x = display_broadway->last_x - private->x;
|
||||
*win_y = display_broadway->last_y - private->y;
|
||||
}
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
static GdkEventMask
|
||||
|
Loading…
Reference in New Issue
Block a user