[PATCH] dix: Set focus field on XI2 crossing events

Ross Lagerwall rosslagerwall at gmail.com
Wed Feb 6 09:12:10 PST 2013


Carlos Garnacho <carlosg at ...> writes:
> 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.

Thanks for taking a look at this. Unfortunately, this doesn't fix the problem
completely. I'm not sure whether to post this to the gtk bug or here... so I'm
posting here.

The original issue was not only for sloppy focus window managers. This means
that when
using awesome with click-to-focus, this patch does not completely fix the issue.
How to reproduce the problem caused by this patch:
See the screencast at http://rossl.org/ross/out.ogv

At desktop 4, the window on the left is focused.
>From desktop 4, change to desktop 5.
Click on the window on the right.
Change back to desktop 4.
Both the window on the left and the window on the right are focused.

I don't know where the problem lies.

Thanks
Ross




More information about the xorg-devel mailing list