Skip to content

Super-left shortcut moves window, when it shouldn't (with ubuntu's vanilla-gnome-desktop) #233

@njsmith

Description

@njsmith

I'm using paperwm on Ubuntu 19.10, with gnome-shell version 3.34.1+git20191024-1ubuntu1~19.10.1

Apparently in this distribution of gnome-shell, by default the Super-left and Control-Super-left keys are both bound to toggle-tiled-left, and Super-right and Control-Super-right are both bound to toggle-tiled-right:

~$ gsettings list-recursively | grep toggle-tiled
org.gnome.mutter.keybindings toggle-tiled-right ['<Super>Right', '<Primary><Super>Right']
org.gnome.mutter.keybindings toggle-tiled-left ['<Super>Left', '<Primary><Super>Left']

(Note: <Primary> is an alias for <Control>. Also note: these don't show up if I do dconf dump, which I believe means that they're coming from the application's default schema, rather than any local setting on my computer.)

This is problematic for paperwm, because it wants to take over Super+left and Super+right to change focus, while Super+Control+left and Super+Control+right are supposed to pick up the current window and move it. And as described in the paperwm README, this takeover system needs some tricky hacks, and can get confused if you have different keys bound to the same action. In my case, the symptom was: by default Super+right would shift focus to the right, but Super+left would move the current window to the left. Pretty confusing.

To work around this, I removed the extra keybinding:

~$ gsettings set org.gnome.mutter.keybindings toggle-tiled-right "['<Super>Right']"
~$ gsettings set org.gnome.mutter.keybindings toggle-tiled-left "['<Super>Left']" 

and then restarted gnome-shell. Now Super+left and Super+right work correctly in paperwm.

However, since this seems to be the default behavior in Ubuntu (and maybe all gnome-shell versions in the future?), it would be good if paperwm had a more robust way of handling it that didn't require all users to make these overrides.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fedoraIssue occurs with Fedora's modified GNOMEubuntuIssue occurs with Ubuntu's modified GNOME

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions