Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360356 - Right clicking on project explorer/navigator items sometimes is ignored
Summary: Right clicking on project explorer/navigator items sometimes is ignored
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2011-10-09 09:24 EDT by Andris Zeila CLA
Modified: 2018-05-15 15:51 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andris Zeila CLA 2011-10-09 09:24:05 EDT
Build Identifier: 3.7

Apparently right mouse click event on project explorer/navigator items is ignored if the button release event comes immediately after button press event.

Normally there is some delay between button press and release events - it's impossible to physically click button without it being held down for some fraction of a second. But when the click is emulated, there might be no delays (depends on emulation source) and then it might get ignored.

My use case is mouse wheel emulation enabled in evdev and set to the right button. In this case right button press is blocked by evdev until the button is released. If the button release does not exceed the specified timeout value (by default it's 200 ms), then evdev emulates right button click by sending press/release events. 

With this setup right clicking on project explorer/navigator/c++ project items works rarely. However it works fine in other places, including package explorer items (which is strange, as the package explorer window is quite similar to the project explorer and other problematic eclipse windows).

When I added delay to evdev button emulation (press-hold-release instead of press-release) the problem was gone. So it's really something with right clicks having no 'hold' delay between press and release events. As it was working fine everywhere else (system) including eclipse package explorer window, I assume it's a problem somewhere in eclipse.



Reproducible: Sometimes

Steps to Reproduce:
1. Configure evdev to use right button to emulate mouse wheel
On debian (ubuntu) create a configuration file (50-mouse-wheel.conf for example) in /usr/share/X11/xorg.conf.d :
Section "InputClass"
        Identifier "Mwheel emu"
        MatchIsPointer "on"
        Driver "evdev"
        Option "EmulateWheel" "1"
        Option "EmulateWheelButton" "3"
EndSection 
2. Restart (ther might be better way, but restarting is sure)
3. Start eclipse
4. Right click on project explorer/navigator/c++ project item

Context menu should be opened, but in most cases it is not. It's still possible to open context menu with keyboard shortcut.
Note that in java package explorer it works normally. The problem is only in project explorer/navigator/c++ project (might be all other similar windows except package explorer).
Comment 1 Remy Suen CLA 2011-10-09 11:15:46 EDT
Does the problem occur with the 'Outline' view?
Comment 2 Andris Zeila CLA 2011-10-09 11:40:17 EDT
(In reply to comment #1)
> Does the problem occur with the 'Outline' view?

No, Outline view works fine.
Comment 3 Remy Suen CLA 2011-11-18 16:06:51 EST
SWT, please advise.
Comment 4 Eric Williams CLA 2018-05-15 15:51:12 EDT
I cannot reproduce this issue on GTK3.22/4.8 M7/Fedora 28.