wayland: Make popup menus not show off-screen

Desktop / LibreOffice - Maxim Monastirsky [gmail.com] - 13 June 2018 22:46 EDT

Depends on gtk 3.22 for gtk_menu_popup_at_rect.

Had to rework the toolbar context menu to not execute async, as otherwise it just closes immediately. (Basically it's same as rhbz#1342823, except that I couldn't find a way to feed gtk_menu_popup_at_rect with the correct timestamp).

Change-Id: I779d8803c80314d93a342f1294c7280f1adf4c98 Reviewed-on: https://gerrit.libreoffice.org/55772

c3e552ac25be wayland: Make popup menus not show off-screen
include/vcl/toolbox.hxx | 1 -
vcl/inc/toolbox.h | 2 -
vcl/source/window/toolbox.cxx | 4 --
vcl/source/window/toolbox2.cxx | 27 +++----------
vcl/unx/gtk/gtksalmenu.cxx | 87 +++++++++++++++++++++++++++++-------------
5 files changed, 65 insertions(+), 56 deletions(-)

Upstream: cgit.freedesktop.org


  • Share