mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-10-28 02:34:15 +00:00 
			
		
		
		
	simplify
This commit is contained in:
		
							parent
							
								
									8ee0200877
								
							
						
					
					
						commit
						6b25e7ef27
					
				
							
								
								
									
										14
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								dwl.c
									
									
									
									
									
								
							| @ -556,7 +556,7 @@ arrangelayers(Monitor *m) | |||||||
| 		ZWLR_LAYER_SHELL_V1_LAYER_TOP, | 		ZWLR_LAYER_SHELL_V1_LAYER_TOP, | ||||||
| 	}; | 	}; | ||||||
| 	size_t nlayers = LENGTH(layers_above_shell); | 	size_t nlayers = LENGTH(layers_above_shell); | ||||||
| 	LayerSurface *layersurface, *topmost = NULL; | 	LayerSurface *layersurface; | ||||||
| 	struct wlr_keyboard *kb = wlr_seat_get_keyboard(seat); | 	struct wlr_keyboard *kb = wlr_seat_get_keyboard(seat); | ||||||
| 
 | 
 | ||||||
| 	// Arrange exclusive surfaces from top->bottom
 | 	// Arrange exclusive surfaces from top->bottom
 | ||||||
| @ -590,18 +590,12 @@ arrangelayers(Monitor *m) | |||||||
| 				&m->layers[layers_above_shell[i]], link) { | 				&m->layers[layers_above_shell[i]], link) { | ||||||
| 			if (layersurface->layer_surface->current.keyboard_interactive && | 			if (layersurface->layer_surface->current.keyboard_interactive && | ||||||
| 					layersurface->layer_surface->mapped) { | 					layersurface->layer_surface->mapped) { | ||||||
| 				topmost = layersurface; | 				wlr_seat_keyboard_notify_enter(seat, layersurface->layer_surface->surface, | ||||||
| 				break; | 						kb->keycodes, kb->num_keycodes, &kb->modifiers); | ||||||
|  | 				return; | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 		if (topmost) { |  | ||||||
| 			break; |  | ||||||
| 		} |  | ||||||
| 	} | 	} | ||||||
| 
 |  | ||||||
| 	if (topmost) |  | ||||||
| 		wlr_seat_keyboard_notify_enter(seat, topmost->layer_surface->surface, |  | ||||||
| 				kb->keycodes, kb->num_keycodes, &kb->modifiers); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void | void | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Guido Cella
						Guido Cella