Bug 70790 - xbutton.subwindow field of the XEvent is always set to zero with emulated ButtonPress pointer events
Summary: xbutton.subwindow field of the XEvent is always set to zero with emulated But...
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/Core (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 86459 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-23 05:57 UTC by PatriceB
Modified: 2018-12-17 17:26 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Proposed patch (1.35 KB, patch)
2015-01-02 17:55 UTC, Olivier Fourdan
no flags Details | Splinter Review

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.