Skip to content

Commit

Permalink
[email protected]: Update middle click for Cinammon 5.4
Browse files Browse the repository at this point in the history
This is in line with changes to button press handling listed at linuxmint#4364
  • Loading branch information
jdranczewski committed Sep 17, 2023
1 parent b0ae822 commit 0f859c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion [email protected]/files/[email protected]/5.4/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0f859c1

Please sign in to comment.