Bug 85473

Summary: Random position of context popup menus
Product: Wayland Reporter: Jonas Heinrich <onny>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Epiphany GTK log wrong position of menus

Description Jonas Heinrich 2014-10-26 09:38:34 UTC
Hi,
using the latest Weston and Wayland version 1.6, context menu popups are displayed in random positions on the screen.
For example right clicking on a file in Nautilus, the context menu opens but on a random position.
Comment 1 Pekka Paalanen 2014-10-27 07:10:53 UTC
Is this with Xwayland, or is Nautilus a native Wayland app?
Comment 2 Jonas Heinrich 2014-10-27 08:16:36 UTC
Here's an example with the browser Epiphany: http://imgur.com/vwy6bF1.png
But this also happens with Xwayland- and other native programs.
Comment 3 Pekka Paalanen 2014-10-27 08:27:59 UTC
Is this related to a specific toolkit?

E.g. if you open a context menu in weston-terminal's terminal area to pick, say, "Open Terminal", is that menu randomly positioned too?

Problems with Xwayland are a separate category from native Wayland apps, you should work in different bug reports on them. I recall Xwayland may have some problems in handling some window types, as X11 applications do not always tell what the parent window is, or something. You might want to check the existing Xwayland bug reports.

Let's track the native Wayland app problem in this report, shall we?
Comment 4 Jonas Heinrich 2014-10-27 09:05:54 UTC
Thanks for your replay :)
Of course we can stick to native Wayland apps and I guess in case of Nautilus and Epiphany it's a GTK related bug.
I have to be more precise that not all context menus are affected by this bug.

Weston-terminal has the popup on the right position, where as for example Nautilus has some context menus on the wrong position.
Comment 5 Jonas Heinrich 2014-10-27 09:09:00 UTC
Created attachment 108498 [details]
Epiphany GTK log wrong position of menus

Here is a log file from the browser Epiphany:
- Starting on line 11: Right clicking on a link. This context menu is on the correct position.
- Starting on line 18: Right click on tab. This context menu is displayed randomly. There are some GTK warnings/errors.
- Starting with line 22: Wrong position of main menu. No warning in log file :/
Comment 6 Daniel Stone 2014-10-27 14:29:41 UTC
Yeah, please file this as a GTK+ bug in their Bugzilla.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.