mirror of
				https://github.com/DreamMaoMao/maomaowm.git
				synced 2025-11-03 09:01:47 -05:00 
			
		
		
		
	opt: not trigger tagin animaiton when view to current tag
This commit is contained in:
		
							parent
							
								
									1a174b1828
								
							
						
					
					
						commit
						284197be0b
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -1725,7 +1725,7 @@ arrange(Monitor *m, bool want_animation) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        if ((c->tags & (1 << (selmon->pertag->prevtag - 1))) &&
 | 
					        if ((c->tags & (1 << (selmon->pertag->prevtag - 1))) &&
 | 
				
			||||||
            want_animation && m->pertag->prevtag != 0 &&
 | 
					            m->pertag->prevtag != 0 &&
 | 
				
			||||||
            m->pertag->curtag != 0 && animations) {
 | 
					            m->pertag->curtag != 0 && animations) {
 | 
				
			||||||
          c->animation.tagouting = true;
 | 
					          c->animation.tagouting = true;
 | 
				
			||||||
          c->animation.tagining = false;
 | 
					          c->animation.tagining = false;
 | 
				
			||||||
| 
						 | 
					@ -6745,9 +6745,9 @@ void view_in_mon(const Arg *arg, bool want_animation, Monitor *m) {
 | 
				
			||||||
  if (arg->ui == 0)
 | 
					  if (arg->ui == 0)
 | 
				
			||||||
    return;
 | 
					    return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // if ((m->tagset[m->seltags] & arg->ui & TAGMASK) != 0) {
 | 
					  if ((m->tagset[m->seltags] & arg->ui & TAGMASK) != 0) {
 | 
				
			||||||
  //   want_animation = false;
 | 
					    want_animation = false;
 | 
				
			||||||
  // }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  m->seltags ^= 1; /* toggle sel tagset */
 | 
					  m->seltags ^= 1; /* toggle sel tagset */
 | 
				
			||||||
  if (arg->ui & TAGMASK) {
 | 
					  if (arg->ui & TAGMASK) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue