[gtk/wip/carlosg/broken-grabs: 170/170] gtkmain: Release the active state on GDK_GRAB_BROKEN



commit 9103fd668707ed83415853e72d8ab301c47bee94
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 12 10:41:54 2020 +0200

    gtkmain: Release the active state on GDK_GRAB_BROKEN
    
    This is handled internally here, but misses broken grabs. The active
    state should be dropped just as if the button were released.
    
    Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2665

 gtk/gtkmain.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index b621ed4f40..aad1e0b683 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1621,6 +1621,7 @@ handle_pointing_event (GdkEvent *event)
       target = gtk_window_lookup_effective_pointer_focus_widget (toplevel,
                                                                  device,
                                                                  sequence);
+      set_widget_active_state (target, TRUE);
       break;
     default:
       g_assert_not_reached ();


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