mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
fix: global window lost manage
This commit is contained in:
parent
838fa77313
commit
cdb0c9f316
1 changed files with 8 additions and 1 deletions
9
main.c
9
main.c
|
|
@ -1148,10 +1148,15 @@ arrange(Monitor *m, bool want_animation) {
|
|||
if (!m->wlr_output->enabled)
|
||||
return;
|
||||
|
||||
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
if (c->iskilling)
|
||||
continue;
|
||||
|
||||
if (c->mon == m && c->isglobal) {
|
||||
c->tags = m->tagset[m->seltags];
|
||||
}
|
||||
|
||||
if (c->mon == m) {
|
||||
if (VISIBLEON(c, m)) {
|
||||
wlr_scene_node_set_enabled(&c->scene->node, true);
|
||||
|
|
@ -1716,7 +1721,9 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data) {
|
|||
void client_set_pending_state(Client *c) {
|
||||
|
||||
// 判断是否需要动画
|
||||
if (animations && c->animation.tagining) {
|
||||
if(c->isglobal){
|
||||
c->animation.should_animate = false;
|
||||
} else if (animations && c->animation.tagining) {
|
||||
c->animation.tagining = false;
|
||||
c->animation.should_animate = true;
|
||||
c->animation.initial = c->animainit_geom;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue