From bcafa512e31f2988fb9ea7cb6b37390b3c5abae9 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 10 Nov 2022 12:06:36 +0100 Subject: [PATCH] quickSettings: Make parent StWidget have a 0x0 size The quick settings menu is child of an actor at 0,0 coordinates, simply transformed to look in place. However the parent actor stays at 0,0, and gets a width/height that is able to contain the child menu (even though the transform will push it outside the parent actor). This makes the parent actor (not meant to handle pointer/touch input) to cover parts of the shell. Since this actor is also where the Clutter grab happens, the menu is not dismissed either. Make this parent actor have a 0x0 size, so that it can still act as the parent for the quick settings menu, but does not actually cover any area. This makes clicks around the top left corner work again while the quick settings menu is opened. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5887 Part-of: --- js/ui/quickSettings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/quickSettings.js b/js/ui/quickSettings.js index f407414df..19f9a3ca4 100644 --- a/js/ui/quickSettings.js +++ b/js/ui/quickSettings.js @@ -582,7 +582,7 @@ var QuickSettingsMenu = class extends PopupMenu.PopupMenu { constructor(sourceActor, nColumns = 1) { super(sourceActor, 0, St.Side.TOP); - this.actor = new St.Widget({reactive: true}); + this.actor = new St.Widget({reactive: true, width: 0, height: 0}); this.actor.add_child(this._boxPointer); this.actor._delegate = this;