mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Send enter event to layer shell surfaces
This commit is contained in:
		
							parent
							
								
									843e16847b
								
							
						
					
					
						commit
						5cd9457247
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -278,6 +278,8 @@ static void handle_map(struct wl_listener *listener, void *data) {
 | 
				
			||||||
			sway_layer, map);
 | 
								sway_layer, map);
 | 
				
			||||||
	struct sway_output *output = sway_layer->layer_surface->output->data;
 | 
						struct sway_output *output = sway_layer->layer_surface->output->data;
 | 
				
			||||||
	wlr_output_damage_add_box(output->damage, &sway_layer->geo);
 | 
						wlr_output_damage_add_box(output->damage, &sway_layer->geo);
 | 
				
			||||||
 | 
						wlr_surface_send_enter(sway_layer->layer_surface->surface,
 | 
				
			||||||
 | 
							sway_layer->layer_surface->output);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void handle_unmap(struct wl_listener *listener, void *data) {
 | 
					static void handle_unmap(struct wl_listener *listener, void *data) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue