Created attachment 130315 [details] My displays arrangement I'm using Fedora 25 with Wayland. My machine is connected to two displays. If the displays are not combined exactly side by side ("All Settings" -> "Displays" -> "Arrange Combined Displays" - see attachment), all popup menus opened using mouse right-clicks are misplaced (see attached example). If I'm combining the displays exactly side-by-side - the popup menus are opened where expected.
Created attachment 130316 [details] Popup menu opened in wrong place
Wayland support is in progress in LO. For the test, could you give a try to daily master LO? (see http://dev-builds.libreoffice.org/daily/master/)
I downloaded and installed the LibreOfficeDev_5.4.0.0.alpha0_Linux_x86-64_rpm build. However -it starts up with an X backend instead of Wayland. Is there a RPM build that was compiled with the Wayland backend for me to test?
Caolán: thought you might be interested in this one since I noticed commits from you concerning Wayland.
And non-libreoffice gtk3 using apps, e.g. gedit are perfectly fine right ?
That is actually a very good question Caolan - In Fedora 24 (Gnome 3.20) - all GTK3 applications suffered from this behavior under Wayland. See the following external bug: https://bugzilla.redhat.com/show_bug.cgi?id=1375560 However - since Fedora 25 (Gnome 3.22) - the problem was solved for all GTK3 apps, except for Libreoffice.
I didn't search the code but it looks like the it could be caused by using gtk_menu_popup(), which has been deprecated in 3.22 in favour of gtk_menu_popup_at_pointer() [0]. Other GTK3 applications updated their code accordingly. See link [1] for further information. [0] https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup [1] https://bugzilla.gnome.org/show_bug.cgi?id=772096
Well, try and make the modifications you think I should make and see if it works
gtk_menu_popup() is used only twice according to Opengrok (see http://opengrok.libreoffice.org/search?q=gtk_menu_popup&project=core&defs=&refs=&path=&hist=) 1) sfx2/source/appl/shutdowniconunx.cxx 2) vcl/unx/gtk/gtksalmenu.cxx (which corresponds to gtk2 part)
Dear Bug Submitter, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping-20170929
Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/ ? You can install it alongside the standard version. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
This is actually a Gtk+ bug. I have a fix for it here: https://gitlab.gnome.org/GNOME/gtk/issues/1154
(In reply to Dima Ryazanov from comment #12) And in the meantime I converted master to use gtk_menu_popup_at_rect, so likely we're not affected by this anymore: https://cgit.freedesktop.org/libreoffice/core/commit/?id=c3e552ac25be001a623469c549ee8d0719b98133
(In reply to Maxim Monastirsky from comment #13) > (In reply to Dima Ryazanov from comment #12) > And in the meantime I converted master to use gtk_menu_popup_at_rect, so > likely we're not affected by this anymore: > > https://cgit.freedesktop.org/libreoffice/core/commit/ > ?id=c3e552ac25be001a623469c549ee8d0719b98133 Putting to RESOLVED FIXED then