input: maximize: unset fullscreen before toggling maximized state

This commit is contained in:
Daniel Eklöf 2020-03-12 17:47:53 +01:00
parent a1ceb1f5ec
commit 62a5805d4b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -87,6 +87,8 @@ input_execute_binding(struct terminal *term, enum binding_action action,
break;
case BIND_ACTION_MAXIMIZE:
if (term->window->is_fullscreen)
xdg_toplevel_unset_fullscreen(term->window->xdg_toplevel);
if (term->window->is_maximized)
xdg_toplevel_unset_maximized(term->window->xdg_toplevel);
else