Skip to content

feat: add bindable togglemaximized action - #1690

Open
cantona wants to merge 1 commit into
raphamorim:mainfrom
cantona:feat/bindable-togglemaximized
Open

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

Conversation

@cantona

@cantona cantona commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

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.

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.
@cantona
cantona force-pushed the feat/bindable-togglemaximized branch from 41974e9 to 42e0641 Compare July 23, 2026 04:39
@cantona

cantona commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

@raphamorim this is quality of life little patch. Please comment. Thanks.

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