mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Don't send grab broken for implicit grabs on button release
This is how it used to work, you only get grab broken if someone else gets a grab, or if the grabbed window gets destroyed or unmapped.
This commit is contained in:
parent
c4d2c38238
commit
7124f5927a
@ -10090,7 +10090,7 @@ _gdk_windowing_got_event (GdkDisplay *display,
|
||||
(event->button.state & GDK_ANY_BUTTON_MASK & ~(GDK_BUTTON1_MASK << (event->button.button - 1))) == 0)
|
||||
{
|
||||
button_release_grab->serial_end = serial;
|
||||
button_release_grab->implicit_ungrab = TRUE;
|
||||
button_release_grab->implicit_ungrab = FALSE;
|
||||
_gdk_display_pointer_grab_update (display, serial);
|
||||
}
|
||||
}
|
||||
@ -10213,7 +10213,7 @@ _gdk_windowing_got_event (GdkDisplay *display,
|
||||
(event->button.state & GDK_ANY_BUTTON_MASK & ~(GDK_BUTTON1_MASK << (event->button.button - 1))) == 0)
|
||||
{
|
||||
button_release_grab->serial_end = serial;
|
||||
button_release_grab->implicit_ungrab = TRUE;
|
||||
button_release_grab->implicit_ungrab = FALSE;
|
||||
_gdk_display_pointer_grab_update (display, serial);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user