Skip to content

feat: add bindable togglemaximized action#1690

Open
cantona wants to merge 2 commits into
raphamorim:mainfrom
cantona:feat/bindable-togglemaximized
Open

feat: add bindable togglemaximized action#1690
cantona wants to merge 2 commits into
raphamorim:mainfrom
cantona:feat/bindable-togglemaximized

Conversation

@cantona

@cantona cantona commented Jun 25, 2026

Copy link
Copy Markdown

Action::ToggleMaximized existed but was never wired up — it had no action-string mapping (so [bindings] couldn't reference it) and no handler. This adds:

  • "togglemaximized" in the action-string parser
  • toggle_maximize_window() emitting RioEvent::ToggleMaximized
  • the Act::ToggleMaximized arm
  • an application handler that flips winit_window.set_maximized() (works on Wayland)

So users can bind window maximize/restore, e.g. { key = "m", with = "super", action = "togglemaximized" }.

Standalone, based on main.

cantona and others added 2 commits June 25, 2026 19:07
ToggleMaximized existed as an Action variant but was never wired up: it
had no action-string mapping (so config bindings couldn't reference it)
and no handler. Add the "togglemaximized" parser entry, a
toggle_maximize_window() that emits RioEvent::ToggleMaximized, the
Act::ToggleMaximized arm, and an application handler that flips
set_maximized. Lets users bind window maximize/restore to a key.
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