[PATCH XTS 2/2] xts5: fix XSetDeviceFocus-5

Chase Douglas chase.douglas at canonical.com
Thu Jan 5 08:23:28 PST 2012

On 01/04/2012 09:02 PM, Peter Hutterer wrote:
> t003() selects for key events on the root window. t005() takes over and then
> complains when the focus correctly follows the pointer and an event is
> delivered to the root window. If you don't expect events on the root window,
> unselect them first.
> Submitting a NULL mask to XSelectExtensionEvents doesn't work, so we need to
> get the correct zero mask for our device. Take a known class and unset the last
> 8 bits since an XEventClass is defined as (deviceid << 8 | event type). But you
> knew that, anyway.

Ummm, yuck?

> We could also XCloseDisplay() at the end of each test but who knows what that
> does to the other tests.
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by: Chase Douglas <chase.douglas at canonical.com>

More information about the xorg-devel mailing list