| Summary: | [Wayland] Show In menu appears in the wrong place | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Eric Williams <ericwill> |
| Component: | SWT | Assignee: | Eric Williams <ericwill> |
| Status: | VERIFIED FIXED | QA Contact: | Eric Williams <ericwill> |
| Severity: | normal | ||
| Priority: | P3 | CC: | gautier.desaintmartinlacaze |
| Version: | 4.8 | ||
| Target Milestone: | 4.8 M6 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=517147 https://git.eclipse.org/r/116068 https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=931aef681a2316e9fe2a414072464b0126f40ff8 https://git.eclipse.org/r/116462 https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=0c0152a2978914808aeafa295b48dc521dd5603f |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 516841 | ||
|
Description
Eric Williams
The following warning pops up when hitting the "Show In" or "Open With" buttons: (Eclipse:12994): Gdk-WARNING **: Tried to map a popup with a non-top most parent Creating a menu on a non-toplevel window is forbidden on Wayland. See: https://bugzilla.gnome.org/show_bug.cgi?id=770745 I'll continue to investigate. More investigation: the bug stems from Menu._setVisible(), which grabs the current GDK event and uses it to pop-the menu up. The GdkWindow attached to this event has the wrong coordinates on Wayland. The fix is to grab the location of the mouse and pop-up the menu there. This is really the only reliable way to do this on Wayland as absolute coordinates are missing and setLocation() has no effect for now (see bug 530204). Gerrit change https://git.eclipse.org/r/116068 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=931aef681a2316e9fe2a414072464b0126f40ff8 (In reply to Eclipse Genie from comment #3) > Gerrit change https://git.eclipse.org/r/116068 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=931aef681a2316e9fe2a414072464b0126f40ff8 Patch is in master now. New Gerrit change created: https://git.eclipse.org/r/116462 Gerrit change https://git.eclipse.org/r/116462 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=0c0152a2978914808aeafa295b48dc521dd5603f (In reply to Eclipse Genie from comment #6) > Gerrit change https://git.eclipse.org/r/116462 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=0c0152a2978914808aeafa295b48dc521dd5603f Added some missing break statements. Verified in I20180305-2000. |