mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
input: maximize: unset fullscreen before toggling maximized state
This commit is contained in:
parent
a1ceb1f5ec
commit
62a5805d4b
1 changed files with 2 additions and 0 deletions
2
input.c
2
input.c
|
|
@ -87,6 +87,8 @@ input_execute_binding(struct terminal *term, enum binding_action action,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BIND_ACTION_MAXIMIZE:
|
case BIND_ACTION_MAXIMIZE:
|
||||||
|
if (term->window->is_fullscreen)
|
||||||
|
xdg_toplevel_unset_fullscreen(term->window->xdg_toplevel);
|
||||||
if (term->window->is_maximized)
|
if (term->window->is_maximized)
|
||||||
xdg_toplevel_unset_maximized(term->window->xdg_toplevel);
|
xdg_toplevel_unset_maximized(term->window->xdg_toplevel);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue