mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	fix: miss reset tagouting state when arrange with no animaiton
This commit is contained in:
		
							parent
							
								
									df7c877614
								
							
						
					
					
						commit
						c0b8e0ee22
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
					@ -1347,9 +1347,9 @@ arrange(Monitor *m, bool want_animation) {
 | 
				
			||||||
				resize(c, c->geom, 0);
 | 
									resize(c, c->geom, 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			} else {
 | 
								} else {
 | 
				
			||||||
				if ((c->tags & (1 << (m->pertag->prevtag - 1))) &&
 | 
									if (animations && want_animation &&
 | 
				
			||||||
					m->pertag->prevtag != 0 && m->pertag->curtag != 0 &&
 | 
										(c->tags & (1 << (m->pertag->prevtag - 1))) &&
 | 
				
			||||||
					animations) {
 | 
										m->pertag->prevtag != 0 && m->pertag->curtag != 0) {
 | 
				
			||||||
					c->animation.tagouting = true;
 | 
										c->animation.tagouting = true;
 | 
				
			||||||
					c->animation.tagining = false;
 | 
										c->animation.tagining = false;
 | 
				
			||||||
					if (m->pertag->curtag > m->pertag->prevtag) {
 | 
										if (m->pertag->curtag > m->pertag->prevtag) {
 | 
				
			||||||
| 
						 | 
					@ -1373,6 +1373,9 @@ arrange(Monitor *m, bool want_animation) {
 | 
				
			||||||
						resize(c, c->geom, 0);
 | 
											resize(c, c->geom, 0);
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
				} else {
 | 
									} else {
 | 
				
			||||||
 | 
										c->animation.tagouting = false;
 | 
				
			||||||
 | 
										c->animation.tagining = false;
 | 
				
			||||||
 | 
										c->animation.tagouted = false;
 | 
				
			||||||
					wlr_scene_node_set_enabled(&c->scene->node, false);
 | 
										wlr_scene_node_set_enabled(&c->scene->node, false);
 | 
				
			||||||
					client_set_suspended(c, true);
 | 
										client_set_suspended(c, true);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue