mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 17:54:14 +00:00
Fix windows not showing up switching between tags
When switching from an empty tag to a tag with clients the screen wasn't updating. This is easily fixed damaging the screen directly in arrange()
This commit is contained in:
parent
914bb4c886
commit
64b5c4c9f9
3
dwl.c
3
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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user