Bug 79925 - [consistency][Gtk] Button MenuDetect preceeds MouseDown
Summary: [consistency][Gtk] Button MenuDetect preceeds MouseDown
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact: Grant Gayed CLA
URL:
Whiteboard:
Keywords: consistency, helpwanted, triaged
: 78547 239927 240806 (view as bug list)
Depends on: 515396
Blocks: 79933
  Show dependency tree
 
Reported: 2004-12-01 16:03 EST by Grant Gayed CLA
Modified: 2020-01-21 08:16 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2004-12-01 16:03:42 EST
- run the ControlExample, stay on the initial Button tab
- listen for MouseDown and MenuDetect
- right-click on an example Button on the page
  -> on motif and gtk you'll receive MenuDetect - MouseDown (seems wrong)
  -> on win32 and osx you'll receive MouseDown - MenuDetect
Comment 1 Grant Gayed CLA 2004-12-01 16:58:35 EST
On further looking, this seems to be the case for all of the controls on gtk.
Comment 2 Steve Northover CLA 2005-01-19 19:56:18 EST
Grant to prioritize.
Comment 3 Grant Gayed CLA 2005-04-05 10:27:24 EDT
*** Bug 78547 has been marked as a duplicate of this bug. ***
Comment 4 Bogdan Gheorghe CLA 2009-12-07 09:20:26 EST
*** Bug 240806 has been marked as a duplicate of this bug. ***
Comment 5 Praveen CLA 2009-12-23 10:41:14 EST
*** Bug 239927 has been marked as a duplicate of this bug. ***
Comment 6 Ian Pun CLA 2017-06-27 13:33:48 EDT
Hi, it looks like this bug is actually caused because a MouseDown is sent as a postEvent while a MenuEvent is sent as a sendEvent. In order to fix this, we must have them both be part of the same event queue. However, the current implementation of fixing DnD for Wayland does not permit this, so this will depend on the status of Leo's fix ( Bug 515396 ). Once that is done, we would be able to manipulate the send/post events better, allowing this to be fixed.