[gimp] app: use gdk_seat_ungrab() in gui_ungrab()



commit ee7bab75fb1dec38856e9cc3ad5974a89ae5c761
Author: Michael Natterer <mitch gimp org>
Date:   Wed May 23 19:19:51 2018 +0200

    app: use gdk_seat_ungrab() in gui_ungrab()

 app/gui/gui-vtable.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/app/gui/gui-vtable.c b/app/gui/gui-vtable.c
index 53f976b..a0cd6d1 100644
--- a/app/gui/gui-vtable.c
+++ b/app/gui/gui-vtable.c
@@ -206,10 +206,7 @@ gui_ungrab (Gimp *gimp)
   GdkDisplay *display = gdk_display_get_default ();
 
   if (display)
-    {
-      gdk_display_pointer_ungrab (display, GDK_CURRENT_TIME);
-      gdk_display_keyboard_ungrab (display, GDK_CURRENT_TIME);
-    }
+    gdk_seat_ungrab (gdk_display_get_default_seat (display));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]