diff options
| author | emersion <contact@emersion.fr> | 2017-12-14 20:31:18 +0100 | 
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2017-12-14 20:31:18 +0100 | 
| commit | 466e86b7b2cbefa55ad5b85a97ee8257c24cb81b (patch) | |
| tree | cc1691ec5abefdffcb8ac6312574ffa03bc4049a /include/wlr/xwayland.h | |
| parent | eb763439f75d3c9174280d0c75ef44941dd99340 (diff) | |
| parent | a9fb071d49b244b72846b384a9e2ef2d9b03a05f (diff) | |
| download | wlroots-466e86b7b2cbefa55ad5b85a97ee8257c24cb81b.tar.xz | |
Merge branch 'master' into surface-transform
Diffstat (limited to 'include/wlr/xwayland.h')
| -rw-r--r-- | include/wlr/xwayland.h | 27 | 
1 files changed, 16 insertions, 11 deletions
| diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h index 9b493d88..9a89661b 100644 --- a/include/wlr/xwayland.h +++ b/include/wlr/xwayland.h @@ -32,6 +32,13 @@ struct wlr_xwayland {  		struct wl_signal new_surface;  	} events; +	/** +	 * Add a custom event handler to xwayland. Return 1 if the event was +	 * handled or 0 to use the default wlr-xwayland handler. wlr-xwayland will +	 * free the event. +	 */ +	int (*user_event_handler)(struct wlr_xwm *xwm, xcb_generic_event_t *event); +  	void *data;  }; @@ -153,20 +160,18 @@ void wlr_xwayland_set_cursor(struct wlr_xwayland *wlr_xwayland,  	uint8_t *pixels, uint32_t stride, uint32_t width, uint32_t height,  	int32_t hotspot_x, int32_t hotspot_y); -void wlr_xwayland_surface_activate(struct wlr_xwayland *wlr_xwayland, -	struct wlr_xwayland_surface *surface, bool activated); +void wlr_xwayland_surface_activate(struct wlr_xwayland_surface *surface, +		bool activated); -void wlr_xwayland_surface_configure(struct wlr_xwayland *wlr_xwayland, -	struct wlr_xwayland_surface *surface, int16_t x, int16_t y, -	uint16_t width, uint16_t height); +void wlr_xwayland_surface_configure(struct wlr_xwayland_surface *surface, +		int16_t x, int16_t y, uint16_t width, uint16_t height); -void wlr_xwayland_surface_close(struct wlr_xwayland *wlr_xwayland, -	struct wlr_xwayland_surface *surface); +void wlr_xwayland_surface_close(struct wlr_xwayland_surface *surface); -void wlr_xwayland_surface_set_maximized(struct wlr_xwayland *wlr_xwayland, -	struct wlr_xwayland_surface *surface, bool maximized); +void wlr_xwayland_surface_set_maximized(struct wlr_xwayland_surface *surface, +		bool maximized); -void wlr_xwayland_surface_set_fullscreen(struct wlr_xwayland *wlr_xwayland, -	struct wlr_xwayland_surface *surface, bool fullscreen); +void wlr_xwayland_surface_set_fullscreen(struct wlr_xwayland_surface *surface, +		bool fullscreen);  #endif | 
