Bug 573475 - ToolBar mouseDown event is fired twice on right click of a toolitem
Summary: ToolBar mouseDown event is fired twice on right click of a toolitem
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.20   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-11 05:36 EDT by Christoph Laeubrich CLA
Modified: 2021-06-02 04:55 EDT (History)
1 user (show)

See Also:


Attachments
Snippet demonstrating the behaviour (1.53 KB, text/x-java)
2021-05-11 05:36 EDT, Christoph Laeubrich CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Laeubrich CLA 2021-05-11 05:36:13 EDT
Created attachment 286355 [details]
Snippet demonstrating the behaviour

If I add a mouse listener to a toolbar the event 'mouseDown' is fired twice if I right click the toolbar, see attached snippet:

1) click with left mouse-button on the toolbar hovering "Button A":
> ToolItem {Button A}

2) click with right mouse-button on the toolbar hovering "Button A":
> ToolItem {Button A}
> ToolItem {Button A}

3) click with right mouse-button on the toolbar hovering none of the buttons:
> null

So it seems that the Toolitem itself produces some kind of event that is then handled by the parent... but adding a event listener to the item itself does not fire any event (what seems intentional).
Comment 1 Joel Majano CLA 2021-06-01 12:12:07 EDT
Attempting to reproduce this bug using the included snippet does not result in the behaviour as described by the report. 

What specific environment does this bug occur in?
Comment 2 Christoph Laeubrich CLA 2021-06-01 12:59:15 EDT
Linux 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
Comment 3 Joel Majano CLA 2021-06-01 15:30:59 EDT
I tried to reproduce this bug on a similar environment with no success. 

Version tested was Linux 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux
Comment 4 Joel Majano CLA 2021-06-01 15:37:03 EDT
One last thing from my end; What desktop environment are you using? (GNOME, etc.)
Comment 5 Christoph Laeubrich CLA 2021-06-02 04:55:26 EDT
What I can find out so far:

Name: Mutter (Muffin)
Desktop: X-Cinnamon
Session: lightdm-xsession
GTK: libgtk-3-0:amd64  3.24.5-1