From 9f85597ede56c6362a33212c5c8529edf9d3bd6c Mon Sep 17 00:00:00 2001 From: Jakub Dranczewski Date: Sun, 17 Sep 2023 19:22:43 +0100 Subject: [PATCH] windowlist@cobinja.de: Update middle click for Cinammon 5.4 This is in line with changes to button press handling listed at https://github.com/linuxmint/cinnamon-spices-applets/issues/4364 --- windowlist@cobinja.de/files/windowlist@cobinja.de/5.4/applet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windowlist@cobinja.de/files/windowlist@cobinja.de/5.4/applet.js b/windowlist@cobinja.de/files/windowlist@cobinja.de/5.4/applet.js index 9595b63048f1..ecc0855a7e19 100644 --- a/windowlist@cobinja.de/files/windowlist@cobinja.de/5.4/applet.js +++ b/windowlist@cobinja.de/files/windowlist@cobinja.de/5.4/applet.js @@ -385,7 +385,7 @@ class CobiPopupMenuItem extends PopupMenu.PopupBaseMenuItem { } _onButtonReleaseEvent (actor, event) { - if (this._settings.getValue("preview-close-on-middle-click") && (event.get_state() & Clutter.ModifierType.BUTTON2_MASK)) { + if (this._settings.getValue("preview-close-on-middle-click") && ((event.get_button() === 2))) { this._onClose(); return true; }