Problem
I set the window switch shortcuts to "Ctrl + Alt + Tab" and "Ctrl + Shift + Alt + Tab". When switching, keeping Ctrl pressed, but letting go of Alt and Tab exits the window switcher. I would like the window switcher to stay on if Ctrl is pressed.
Proposal
I took a look at the code, and the logic for deciding which modifier is the primary modifier is in WindowSwitcher.vala, in the handle_switch_windows method. There's a call to binding.get_mask (), and the primary modifier is computed from that. In the above case, the primary modifier is computed as Alt, but I would like to configure it to be Ctrl.
|
// copied from gnome-shell, finds the primary modifier in the mask |
Prior Art (Optional)
The current behaviour when switching is keeping Alt pressed, but letting go of Ctrl and Tab keeps the window switcher on. I just want the roles of Alt and Ctrl swapped.
Problem
I set the window switch shortcuts to "Ctrl + Alt + Tab" and "Ctrl + Shift + Alt + Tab". When switching, keeping Ctrl pressed, but letting go of Alt and Tab exits the window switcher. I would like the window switcher to stay on if Ctrl is pressed.
Proposal
I took a look at the code, and the logic for deciding which modifier is the primary modifier is in
WindowSwitcher.vala, in thehandle_switch_windowsmethod. There's a call tobinding.get_mask (), and the primary modifier is computed from that. In the above case, the primary modifier is computed as Alt, but I would like to configure it to be Ctrl.gala/src/Widgets/WindowSwitcher/WindowSwitcher.vala
Line 114 in 5a75065
Prior Art (Optional)
The current behaviour when switching is keeping Alt pressed, but letting go of Ctrl and Tab keeps the window switcher on. I just want the roles of Alt and Ctrl swapped.