Bug 70790

Summary: xbutton.subwindow field of the XEvent is always set to zero with emulated ButtonPress pointer events
Product: xorg Reporter: PatriceB <pbfwdlist>
Component: Server/Input/CoreAssignee: Peter Hutterer <peter.hutterer>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: fourdan, haibo.chen, peter.hutterer
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Proposed patch none

Description PatriceB 2013-10-23 05:57:52 UTC
As described in title, I've noticed that .xbutton.subwindow field of the XEvent is always set to zero with emulated pointer events. According to  Peter Hutterer, it sounds like a bug : http://lists.x.org/archives/xorg/2013-October/056118.html
Comment 1 PatriceB 2013-10-23 06:26:25 UTC
I've noticed also that:

* .xbutton.subwindow fild is correctly set in ButtonRelease emulated XEvent.

*  On XI_ButtonPress, (XIDeviceEvent*) cookie->data -> child is set to 0 and is correctly set on XI_ButtonRelease.
Comment 2 Olivier Fourdan 2015-01-02 10:06:09 UTC
Can be reproduced using evemu, although, oddly enough, the same test performed in Xephyr does report the subwindow field correctly (i.e. don't try to reproduce using Xephyr).

I think both button press and motion events are affected, both report subwindow as none.
Comment 3 Olivier Fourdan 2015-01-02 17:55:32 UTC
Created attachment 111666 [details] [review]
Proposed patch
Comment 4 Peter Hutterer 2015-01-06 06:35:22 UTC
looks good, merged locally. thanks
Comment 5 Peter Hutterer 2015-01-07 22:52:07 UTC
*** Bug 86459 has been marked as a duplicate of this bug. ***
Comment 6 GitLab Migration User 2018-12-17 17:26:55 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/571.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.