applied Martin Hurton's view() simplification, not checking arg
This commit is contained in:
		
							
								
								
									
										4
									
								
								dwm.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dwm.c
									
									
									
									
									
								
							@@ -1640,10 +1640,10 @@ updatewmhints(Client *c) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
view(const Arg *arg) {
 | 
					view(const Arg *arg) {
 | 
				
			||||||
	if(arg && (arg->ui & TAGMASK) == tagset[seltags])
 | 
						if((arg->ui & TAGMASK) == tagset[seltags])
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	seltags ^= 1; /* toggle sel tagset */
 | 
						seltags ^= 1; /* toggle sel tagset */
 | 
				
			||||||
	if(arg && (arg->ui & TAGMASK))
 | 
						if(arg->ui & TAGMASK)
 | 
				
			||||||
		tagset[seltags] = arg->ui & TAGMASK;
 | 
							tagset[seltags] = arg->ui & TAGMASK;
 | 
				
			||||||
	clearurgent();
 | 
						clearurgent();
 | 
				
			||||||
	arrange();
 | 
						arrange();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user