sticky: prioritise non-sticky windows on focus(NULL) ref. #387
This commit is contained in:
		
							
								
								
									
										4
									
								
								dwm.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								dwm.c
									
									
									
									
									
								
							@@ -2046,6 +2046,10 @@ focus(Client *c)
 | 
				
			|||||||
	if (!c || !ISVISIBLE(c))
 | 
						if (!c || !ISVISIBLE(c))
 | 
				
			||||||
		c = getpointerclient();
 | 
							c = getpointerclient();
 | 
				
			||||||
	#endif // FOCUSFOLLOWMOUSE_PATCH
 | 
						#endif // FOCUSFOLLOWMOUSE_PATCH
 | 
				
			||||||
 | 
						#if STICKY_PATCH
 | 
				
			||||||
 | 
						if (!c || !ISVISIBLE(c))
 | 
				
			||||||
 | 
							for (c = selmon->stack; c && !ISVISIBLE(c) && !c->issticky; c = c->snext);
 | 
				
			||||||
 | 
						#endif // STICKY_PATCH
 | 
				
			||||||
	if (!c || !ISVISIBLE(c))
 | 
						if (!c || !ISVISIBLE(c))
 | 
				
			||||||
		for (c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
 | 
							for (c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
 | 
				
			||||||
	if (selmon->sel && selmon->sel != c)
 | 
						if (selmon->sel && selmon->sel != c)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user