mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-11-03 09:01:45 -05:00 
			
		
		
		
	don't detect non-visible clients under cursor
This commit is contained in:
		
							parent
							
								
									387dff81b3
								
							
						
					
					
						commit
						35557ab042
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								dwl.c
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								dwl.c
									
										
									
									
									
								
							| 
						 | 
					@ -1148,6 +1148,9 @@ xytoclient(double x, double y,
 | 
				
			||||||
	 * cursor. This relies on clients being ordered from top-to-bottom. */
 | 
						 * cursor. This relies on clients being ordered from top-to-bottom. */
 | 
				
			||||||
	Client *c;
 | 
						Client *c;
 | 
				
			||||||
	wl_list_for_each(c, &clients, link) {
 | 
						wl_list_for_each(c, &clients, link) {
 | 
				
			||||||
 | 
							/* Skip clients that aren't visible */
 | 
				
			||||||
 | 
							if (!VISIBLEON(c, c->mon))
 | 
				
			||||||
 | 
								continue;
 | 
				
			||||||
		/*
 | 
							/*
 | 
				
			||||||
		 * XDG toplevels may have nested surfaces, such as popup windows
 | 
							 * XDG toplevels may have nested surfaces, such as popup windows
 | 
				
			||||||
		 * for context menus or tooltips. This function tests if any of
 | 
							 * for context menus or tooltips. This function tests if any of
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue