[broadway] Implement _gdk_windowing_window_at_device_position

This commit is contained in:
Alexander Larsson 2010-11-21 20:46:14 +01:00
parent 93fec05183
commit ec4a6c4a5f

View File

@ -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