Skip to content

Commit

Permalink
windowlist@cobinja.de: Update middle click for Cinammon 5.4 (#5033)
Browse files Browse the repository at this point in the history
This is in line with changes to button press handling listed at #4364
  • Loading branch information
jdranczewski authored Sep 22, 2023
1 parent a330566 commit 9f09f10
Showing 1 changed file with 1 addition and 1 deletion.
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 9f09f10

Please sign in to comment.