mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
x11: Handle all XI2 crossing mode values in switch
This fixes potential assertions if a GTK+ app gets to receive a XINotifyPassiveGrab/Ungrab pointer crossing event, currently triggerable by XIGrabEnter passive grabs. http://bugzilla.gnome.org/show_bug.cgi?id=719762
This commit is contained in:
parent
96d2eeb6ba
commit
3dbabbd2e5
@ -780,12 +780,16 @@ translate_crossing_mode (gint mode)
|
||||
{
|
||||
switch (mode)
|
||||
{
|
||||
case NotifyNormal:
|
||||
case XINotifyNormal:
|
||||
return GDK_CROSSING_NORMAL;
|
||||
case NotifyGrab:
|
||||
case XINotifyGrab:
|
||||
case XINotifyPassiveGrab:
|
||||
return GDK_CROSSING_GRAB;
|
||||
case NotifyUngrab:
|
||||
case XINotifyUngrab:
|
||||
case XINotifyPassiveUngrab:
|
||||
return GDK_CROSSING_UNGRAB;
|
||||
case XINotifyWhileGrabbed:
|
||||
/* Fall through, unexpected in pointer crossing events */
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user