summaryrefslogtreecommitdiff
path: root/0001-windowMenu-Ignore-release.patch
blob: bb55ef9edf2c3960d78319bbc934d9ec851d1912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From b3cac57511575e1265ab0ebd9c7465a6ade913e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Thu, 28 Sep 2023 14:34:24 +0200
Subject: [PATCH] windowMenu: Ignore release

If the menu was open on button-press, make sure it is kept open
until explicitly dismissed, regardless of the pointer position.
---
 js/ui/windowMenu.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/js/ui/windowMenu.js b/js/ui/windowMenu.js
index 3449f759da..ad5c2a74cc 100644
--- a/js/ui/windowMenu.js
+++ b/js/ui/windowMenu.js
@@ -229,6 +229,7 @@ var WindowMenuManager = class {
         let menu = new WindowMenu(window, this._sourceActor);
 
         this._manager.addMenu(menu);
+        this._manager.ignoreRelease();
 
         menu.connect('activate', () => {
             window.check_alive(global.get_current_time());
-- 
2.41.0