From 6dc1a0dc91590b99a5a6ca152c83e2f8731df9ba Mon Sep 17 00:00:00 2001 From: jonian Date: Fri, 16 Apr 2021 16:14:30 +0300 Subject: [PATCH] open window menu: make event rectangle bigger to avoid menu hidding fix #236 --- unite@hardpixel.eu/panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unite@hardpixel.eu/panel.js b/unite@hardpixel.eu/panel.js index 2665188..b5c14d7 100644 --- a/unite@hardpixel.eu/panel.js +++ b/unite@hardpixel.eu/panel.js @@ -572,7 +572,7 @@ var TitlebarActions = class TitlebarActions extends PanelExtension { _openWindowMenu(win, x) { const size = Main.panel.height + 4 - const rect = { x, y: 0, width: size, height: size } + const rect = { x: x - size, y: 0, width: size * 2, height: size } const type = Meta.WindowMenuType.WM Main.wm._windowMenuManager.showWindowMenuForWindow(win, type, rect)