diff options
Diffstat (limited to 'sway/desktop/surface.c')
| -rw-r--r-- | sway/desktop/surface.c | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/sway/desktop/surface.c b/sway/desktop/surface.c index 1d7b536d..a5a18917 100644 --- a/sway/desktop/surface.c +++ b/sway/desktop/surface.c @@ -4,6 +4,7 @@  #include <wlr/types/wlr_compositor.h>  #include "sway/server.h"  #include "sway/surface.h" +#include "sway/output.h"  static void handle_destroy(struct wl_listener *listener, void *data) {  	struct sway_surface *surface = wl_container_of(listener, surface, destroy); @@ -44,3 +45,13 @@ void handle_compositor_new_surface(struct wl_listener *listener, void *data) {  		wl_resource_post_no_memory(wlr_surface->resource);  	}  } + +void surface_enter_output(struct wlr_surface *surface, +		struct sway_output *output) { +	wlr_surface_send_enter(surface, output->wlr_output); +} + +void surface_leave_output(struct wlr_surface *surface, +		struct sway_output *output) { +	wlr_surface_send_leave(surface, output->wlr_output); +} | 
