From 1fa2d359a67b92fa8150ab51df4eb272fc3391eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Date: Mon, 14 Jun 2021 18:39:00 +0200 Subject: [PATCH] Desktop context menu: Do not show scroll (#1153) Avoid showing scroll when the desktop context menu is displayed close to the screen bottom edge. This behavious was caused by the "push_in" param in the popup GtkMenuPositionFunc callback: > Note that moving and possibly resizing the menu around will alter the > scroll position [...]. In practice, this behavior is only useful for > combobox popups or option menus https://developer.gnome.org/gtk3/stable/GtkMenu.html#GtkMenuPositionFunc Fix #1146 Co-authored-by: Cassidy James Blaede --- daemon/MenuDaemon.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/MenuDaemon.vala b/daemon/MenuDaemon.vala index f82fbf11..6ea4cb60 100644 --- a/daemon/MenuDaemon.vala +++ b/daemon/MenuDaemon.vala @@ -353,7 +353,7 @@ namespace Gala { // Move the menu 1 pixel outside of the pointer or else it closes instantly // on the mouse up event py = (y / scale) + 1; - push_in = true; + push_in = false; }, 3, Gdk.CURRENT_TIME); } }