wayland: Make popup menus not show off-screen
commitc3e552ac25be001a623469c549ee8d0719b98133
authorMaxim Monastirsky <momonasmon@gmail.com>
Mon, 11 Jun 2018 23:26:28 +0000 (12 02:26 +0300)
committerMaxim Monastirsky <momonasmon@gmail.com>
Wed, 13 Jun 2018 22:46:36 +0000 (14 00:46 +0200)
tree624f73b7e15e93af22066a72917621ed9eefd69d
parent2bfc4cefc21ab18e9ff7cc5fdc743bcc856d103c
wayland: Make popup menus not show off-screen

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
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
include/vcl/toolbox.hxx
vcl/inc/toolbox.h
vcl/source/window/toolbox.cxx
vcl/source/window/toolbox2.cxx
vcl/unx/gtk/gtksalmenu.cxx