diff --git a/dwl.c b/dwl.c index 45be771..9c4abf0 100644 --- a/dwl.c +++ b/dwl.c @@ -505,6 +505,7 @@ arrange(Monitor *m) else if (m->fullscreenclient) maximizeclient(m->fullscreenclient); /* TODO recheck pointer focus here... or in resize()? */ + wlr_output_damage_add_whole(m->damage); } void @@ -2028,7 +2029,6 @@ setmon(Client *c, Monitor *m, unsigned int newtags) if (oldmon) { wlr_surface_send_leave(client_surface(c), oldmon->wlr_output); arrange(oldmon); - wlr_output_damage_add_whole(oldmon->damage); } if (m) { /* Make sure window actually overlaps with the monitor */ @@ -2036,7 +2036,6 @@ setmon(Client *c, Monitor *m, unsigned int newtags) wlr_surface_send_enter(client_surface(c), m->wlr_output); c->tags = newtags ? newtags : m->tagset[m->seltags]; /* assign tags of target monitor */ arrange(m); - wlr_output_damage_add_whole(m->damage); } focusclient(focustop(selmon), 1); }