[gnome-shell/gnome-41] Let users use the other mouse button to switch



commit 1c1bc37a19121b1b707439a24c701de00c0a96b7
Author: Razze <razzeee gmail com>
Date:   Sat Sep 4 11:33:00 2021 +0200

    Let users use the other mouse button to switch
    
    As users can have different primary mouse buttons (left vs right) it
    might happen, that a user with a different
    preference wants to switch. Currently they need
    to use the mouse button, that the current
    user prefers.
    
    This change enables users to use either the left or right button.
    
    (cherry picked from commit 55a37ac99255132bc7cae9e241fa98bb69992b6c)
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2180>

 js/ui/unlockDialog.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js
index 763cdde8d2..7a9d6d226f 100644
--- a/js/ui/unlockDialog.js
+++ b/js/ui/unlockDialog.js
@@ -572,6 +572,7 @@ var UnlockDialog = GObject.registerClass({
         this._otherUserButton = new St.Button({
             style_class: 'modal-dialog-button button switch-user-button',
             accessible_name: _('Log in as another user'),
+            button_mask: St.ButtonMask.ONE | St.ButtonMask.THREE,
             reactive: false,
             opacity: 0,
             x_align: Clutter.ActorAlign.END,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]