Bug 573475

Summary: ToolBar mouseDown event is fired twice on right click of a toolitem
Product: [Eclipse Project] Platform Reporter: Christoph Laeubrich <laeubi>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: jmajano
Version: 4.20   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Snippet demonstrating the behaviour none

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