Bug 86459 - can't close the window if touch the close window button(on the top-right) in multi-touch mode
Summary: can't close the window if touch the close window button(on the top-right) in ...
Status: RESOLVED DUPLICATE of bug 70790
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xorg (show other bugs)
Version: git
Hardware: ARM Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-19 10:14 UTC by Haibo Chen
Modified: 2015-01-07 22:52 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Haibo Chen 2014-11-19 10:14:07 UTC
When matchbox-window-manger(Version 1.2) create a window, there is a
close window button on the top-right of this new window which seems
like "X". If we use a mouse, and click this "X" close window button,
the window can be closed. But when we use multi-touch screen, and
touch this "X" close window button, this window can't be closed, and
nothing changed on the screen. By the way, multi-touch can work normal
when we touch the window's other place except the "X" close button.
And both single touch and mouse can work normal, they can close the
window by touch/click the "X" close window button.

In Xorg(Version 1.16.1), mouse click event, single touch event, and
multi-touch event all call the below function to deliver the coming
event to the target window.

int
DeliverDeviceEvents(WindowPtr pWin, InternalEvent *event, GrabPtr grab,
                    WindowPtr stopAt, DeviceIntPtr dev)

If we use mouse or single touch to click/touch the "X" close window
button, function ProcessDeviceEvent() call the above function. When the
event->any.type=ET_ButtonPress, the pWin point to the "X" close window
button. The pWin is got by function GetSpriteWindow().

But if we use multi-touch to touch the "X" close window button, function
DeliverTouchEmulatedEvent() call DeliverDeviceEvents(). When the
event->any.type=ET_ButtonPress, the pWin does not point to the "X" close
window button, it actually point to the "X" close window button's parent
window. So in function DeliverDeviceEvents(), when call function
DeliverOneEvent(), the value child is zero, rather than the target window.
Comment 1 Peter Hutterer 2015-01-07 01:51:46 UTC
Can you check with bug 70790 pls? looks like the same issue
Comment 2 Peter Hutterer 2015-01-07 22:52:07 UTC

*** This bug has been marked as a duplicate of bug 70790 ***


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.