mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	xwayland: add set_parent event
This commit is contained in:
		
							parent
							
								
									d8c86431e0
								
							
						
					
					
						commit
						7c9f3240f6
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -52,6 +52,7 @@ struct wlr_xwayland_surface {
 | 
			
		|||
 | 
			
		||||
		struct wl_signal set_title;
 | 
			
		||||
		struct wl_signal set_class;
 | 
			
		||||
		struct wl_signal set_parent;
 | 
			
		||||
	} events;
 | 
			
		||||
 | 
			
		||||
	void *data;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -64,6 +64,7 @@ static struct wlr_xwayland_surface *wlr_xwayland_surface_create(
 | 
			
		|||
	wl_signal_init(&surface->events.request_configure);
 | 
			
		||||
	wl_signal_init(&surface->events.set_class);
 | 
			
		||||
	wl_signal_init(&surface->events.set_title);
 | 
			
		||||
	wl_signal_init(&surface->events.set_parent);
 | 
			
		||||
	return surface;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -156,6 +157,7 @@ static void read_surface_parent(struct wlr_xwm *xwm,
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	wlr_log(L_DEBUG, "XCB_ATOM_WM_TRANSIENT_FOR: %p", xid);
 | 
			
		||||
	wl_signal_emit(&surface->events.set_parent, surface);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void read_surface_property(struct wlr_xwm *xwm,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue