make sure fullscreen clients have the right size

This commit is contained in:
Leonardo Hernández Hernández 2023-11-16 20:47:29 -06:00
parent 6f8a3f9374
commit 2212363225
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

3
dwl.c
View File

@ -2604,6 +2604,9 @@ updatemons(struct wl_listener *listener, void *data)
arrangelayers(m); arrangelayers(m);
/* Don't move clients to the left output when plugging monitors */ /* Don't move clients to the left output when plugging monitors */
arrange(m); arrange(m);
/* make sure fullscreen clients have the right size */
if ((c = focustop(m)) && c->isfullscreen)
resize(c, m->m, 0);
config_head->state.enabled = 1; config_head->state.enabled = 1;
config_head->state.mode = m->wlr_output->current_mode; config_head->state.mode = m->wlr_output->current_mode;