dix: Set focus field on XI2 crossing events
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 6 Feb 2013 13:07:22 +0000 (14:07 +0100)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 8 Feb 2013 06:09:27 +0000 (16:09 +1000)
commit509b3c3dc82e7abce1900d5e1cddd90f23be5a87
treed092b73c5bd17a0eb06c1fe8d1817ac0a6c337ec
parent3e4be4033aed78b2bb3a18d51f0963989efd1af3
dix: Set focus field on XI2 crossing events

Set on DeviceEnterLeaveEvent() the xXIEnterEvent->focus field
similarly to how the CoreEnterLeaveEvent() function above does
for core events.

This fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=677329
reported to GTK+, where focus handling on window managers with
sloppy focus or no window manager present was broken due to this
field being always set to FALSE.

Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
dix/events.c