diff options
Diffstat (limited to 'demos/gtk-demo/changedisplay.c')
-rw-r--r-- | demos/gtk-demo/changedisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/changedisplay.c b/demos/gtk-demo/changedisplay.c index 1d363b52b6..f9c273297d 100644 --- a/demos/gtk-demo/changedisplay.c +++ b/demos/gtk-demo/changedisplay.c @@ -128,7 +128,7 @@ query_for_toplevel (GdkDisplay *display, device = gtk_get_current_event_device (); if (gdk_seat_grab (gdk_device_get_seat (device), - gtk_widget_get_window (popup), + gtk_widget_get_surface (popup), GDK_SEAT_CAPABILITY_ALL_POINTING, FALSE, cursor, NULL, NULL, NULL) == GDK_GRAB_SUCCESS) { |