mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
fix: should set global client tag before caculate number of client in arrange
This commit is contained in:
parent
1f7a8a3ced
commit
17009f5364
2 changed files with 8 additions and 7 deletions
|
|
@ -1030,7 +1030,7 @@ void resize(Client *c, struct wlr_box geo, int interact) {
|
|||
c->animainit_geom = c->geom;
|
||||
}
|
||||
|
||||
if (c->scratchpad_switching_mon) {
|
||||
if (c->scratchpad_switching_mon && c->isfloating) {
|
||||
c->animainit_geom = c->geom;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -597,6 +597,13 @@ arrange(Monitor *m, bool want_animation) {
|
|||
m->visible_tiling_clients = 0;
|
||||
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
|
||||
if (c->mon == m && (c->isglobal || c->isunglobal)) {
|
||||
c->tags = m->tagset[m->seltags];
|
||||
if (c->mon->sel == NULL)
|
||||
focusclient(c, 0);
|
||||
}
|
||||
|
||||
if (VISIBLEON(c, m)) {
|
||||
m->visible_clients++;
|
||||
if (ISTILED(c)) {
|
||||
|
|
@ -611,12 +618,6 @@ arrange(Monitor *m, bool want_animation) {
|
|||
if (c->iskilling)
|
||||
continue;
|
||||
|
||||
if (c->mon == m && (c->isglobal || c->isunglobal)) {
|
||||
c->tags = m->tagset[m->seltags];
|
||||
if (c->mon->sel == NULL)
|
||||
focusclient(c, 0);
|
||||
}
|
||||
|
||||
if (c->mon == m) {
|
||||
if (VISIBLEON(c, m)) {
|
||||
if (ISTILED(c)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue