applied dme's patch to prevent changing prevtags if nothing actually changed
This commit is contained in:
		
							parent
							
								
									c619363d15
								
							
						
					
					
						commit
						4adfdc9d95
					
				
							
								
								
									
										11
									
								
								dwm.c
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								dwm.c
									
									
									
									
									
								
							| @ -1976,15 +1976,18 @@ xerrorstart(Display *dsply, XErrorEvent *ee) { | |||||||
| void | void | ||||||
| view(const char *arg) { | view(const char *arg) { | ||||||
| 	unsigned int i; | 	unsigned int i; | ||||||
| 
 | 	Bool tmp[LENGTH(tags)]; | ||||||
| 	Monitor *m = &monitors[monitorat()]; | 	Monitor *m = &monitors[monitorat()]; | ||||||
| 
 | 
 | ||||||
| 	memcpy(m->prevtags, m->seltags, sizeof initags); |  | ||||||
| 	for(i = 0; i < LENGTH(tags); i++) | 	for(i = 0; i < LENGTH(tags); i++) | ||||||
| 		m->seltags[i] = (NULL == arg); | 		tmp[i] = (NULL == arg); | ||||||
| 	m->seltags[idxoftag(arg)] = True; | 	tmp[idxoftag(arg)] = True; | ||||||
|  | 	if(memcmp(m->seltags, tmp, sizeof initags) != 0) { | ||||||
|  | 		memcpy(m->prevtags, m->seltags, sizeof initags); | ||||||
|  | 		memcpy(m->seltags, tmp, sizeof initags); | ||||||
| 		arrange(); | 		arrange(); | ||||||
| 	} | 	} | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| void | void | ||||||
| viewprevtag(const char *arg) { | viewprevtag(const char *arg) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Anselm R Garbe
						Anselm R Garbe