mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	wl-shell: add commit event
This commit is contained in:
		
							parent
							
								
									8eceaa2291
								
							
						
					
					
						commit
						41d7bad470
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -77,6 +77,7 @@ struct wlr_wl_shell_surface {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct {
 | 
						struct {
 | 
				
			||||||
		struct wl_signal destroy;
 | 
							struct wl_signal destroy;
 | 
				
			||||||
 | 
							struct wl_signal commit;
 | 
				
			||||||
		struct wl_signal ping_timeout;
 | 
							struct wl_signal ping_timeout;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		struct wl_signal request_move;
 | 
							struct wl_signal request_move;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -459,6 +459,8 @@ static void handle_wlr_surface_committed(struct wl_listener *listener,
 | 
				
			||||||
				surface->popup_state->seat);
 | 
									surface->popup_state->seat);
 | 
				
			||||||
		shell_pointer_grab_maybe_end(&grab->pointer_grab);
 | 
							shell_pointer_grab_maybe_end(&grab->pointer_grab);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						wl_signal_emit(&surface->events.commit, surface);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int shell_surface_ping_timeout(void *user_data) {
 | 
					static int shell_surface_ping_timeout(void *user_data) {
 | 
				
			||||||
| 
						 | 
					@ -509,6 +511,7 @@ static void shell_protocol_get_shell_surface(struct wl_client *client,
 | 
				
			||||||
		wl_surface->resource);
 | 
							wl_surface->resource);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl_signal_init(&wl_surface->events.destroy);
 | 
						wl_signal_init(&wl_surface->events.destroy);
 | 
				
			||||||
 | 
						wl_signal_init(&wl_surface->events.commit);
 | 
				
			||||||
	wl_signal_init(&wl_surface->events.ping_timeout);
 | 
						wl_signal_init(&wl_surface->events.ping_timeout);
 | 
				
			||||||
	wl_signal_init(&wl_surface->events.request_move);
 | 
						wl_signal_init(&wl_surface->events.request_move);
 | 
				
			||||||
	wl_signal_init(&wl_surface->events.request_resize);
 | 
						wl_signal_init(&wl_surface->events.request_resize);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue