Community
Participate
Working Groups
Display#post(Event) confuses mouse buttons 2 and 3 on Cocoa. To reproduce, use Snippet142 but click the right mouse button: event.button = 3; The console says that button 2 has been pressed. With button = 2, the console says button 3. This works fine on Windows 7 and GTK. If you change Button to Text in the snippet, you see that button 3 correctly opens the context menu.
Lakshmi, please take a loot at this problem. Thanks.
Created attachment 207908 [details] patch Felipe, can you please review?
The SWT buttons were not mapped correctly to the CG buttons in Display.post(). The patch fixes this.
I was not able to apply the patch using (git am) or egit. Please use 'git format-patch -M origin/master' to create patches. I copied the patch line-by-line and tested. It works fine, please release.
(In reply to comment #4) > I was not able to apply the patch using (git am) or egit. > Please use 'git format-patch -M origin/master' to create patches. > > I copied the patch line-by-line and tested. > It works fine, please release. Sorry Felipe, I'm not sure why it doesn't apply. I created the patch using egit. It applies in my workspace but only after setting ignore leading path segments to 3 ...
Fixed in master. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=f5a855e5093f3afa38b5582c7c24b400491769d9 Thanks Felipe!
Could you release this to M4? The command from bug 357532 is currently broken on other platforms, since the implementation relies on this Mac-specific bug. Once this fix is declared to go into the next I-build, bug 357532 can be fixed by using "mouseEvent.button = 3;" everywhere.
(In reply to comment #7) > Could you release this to M4? > > The command from bug 357532 is currently broken on other platforms, since the > implementation relies on this Mac-specific bug. > > Once this fix is declared to go into the next I-build, bug 357532 can be fixed > by using "mouseEvent.button = 3;" everywhere. The fix will be in tonight's build.