linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.53k stars 735 forks source link

Workspaces "Direct navigation" and "Move window to workspace" clash for super+number, if shift is the only difference #6141

Open crsaracco opened 7 years ago

crsaracco commented 7 years ago

cinnamon --version shows Cinnamon 3.2.1.

My desired workflow is Super + \<number> to direct-switch to workspace \<number>, and Shift + Super + \<number> to move a window there.

It seems that the keyboard settings detects the difference between those two keypresses:

However, whenever I go to switch workspaces by hitting "Super+2", the window that's currently selected moves to workspace 2. I can't actually get Cinnamon to switch to workspace 2 via this keyboard shortcut, even if I click on the desktop.

If I get rid of the "Move window to workspace" keyboard shortcut, the "Switch to workspace" one works just fine.

dqgls commented 7 years ago

I can reproduce and confirm this bug on Cinnamon 3.2.7.

In Cinnamon 2.x (LM 17.x) I had exactly the same keyboard shortcuts set up and it worked fine, although I rarely used "Move window to workspace N".

In Cinnamon 3.2.7 (LM 18.1) I have only set "Super+N" for "Switch to workspace N" and it works fine by itself. But if I add "Super+!" (Shift+Super+1) for "Move window to workspace 1" it breaks the existing shortcut for "Switch to workspace 1": sometimes Super+1 does nothing at all, sometimes it moves the focused window instead of switching to workspace 1.

dqgls commented 7 years ago

If I directly set dconf key org.cinnamon.desktop.keybindings.wm.move-to-workspace-1 to value ['<Super><Shift>1'] it works fine.

I see two possible ways of solving this issue:

I think both should be done.

crsaracco commented 7 years ago

@dqgls Thanks for that neat trick, that solved it for now! Agreed on both bullet points.