Skip to content

keybindings: Let the Super key end a mouse window move - #897

Open
SeniorMatt wants to merge 1 commit into
linuxmint:masterfrom
SeniorMatt:menu-during-window-grab
Open

SeniorMatt wants to merge 1 commit into
linuxmint:masterfrom
SeniorMatt:menu-during-window-grab

Conversation

@SeniorMatt

@SeniorMatt SeniorMatt commented Nov 20, 2026 •

Copy link
Copy Markdown

While moving a window with the mouse, tapping Super does nothing: all keys are grabbed on the window during the drag, so modifier-only bindings are skipped (and Cinnamon couldn't take its modal grab during a grab op anyway).

Now, if Super alone is pressed and released during a mouse move and has a binding, the move ends where the window is (same as releasing the button) and the binding runs, so the menu opens. Other modifiers, keyboard move/resize, and the workspace shortcuts that work during a drag are unchanged.

Tested on a ThinkPad T14s Gen 2 (Mint 27, Wayland): tapping Super mid-drag drops the window and opens the menu.

While a window is being moved with the mouse, all keys are grabbed on it,
so process_key_event() skipped the modifier-only bindings. Pressing and
releasing Super during a drag therefore never reached Cinnamon's menu
key binding and the menu could not be opened. Even if it had, the shell
cannot take its modal grab while a grab op is active.

When Super is pressed and released on its own during a mouse move and
has a binding, end the grab op first (the window stays where it is, as
if the mouse button had been released) and then run the binding.
Other modifiers, keyboard move/resize and the workspace shortcuts
available during a mouse move are unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant