aboutsummaryrefslogtreecommitdiff
path: root/include/sway/surface.h
blob: a7a8ec3ff371015481d3ed4379cc856f3d42cc22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _SWAY_SURFACE_H
#define _SWAY_SURFACE_H
#include <wlr/types/wlr_compositor.h>

struct sway_surface {
	struct wlr_surface *wlr_surface;

	struct wl_listener destroy;

	/**
	 * This timer can be used for issuing delayed frame done callbacks (for
	 * example, to improve presentation latency). Its handler is set to a
	 * function that issues a frame done callback to this surface.
	 */
	struct wl_event_source *frame_done_timer;
};

void surface_update_outputs(struct wlr_surface *surface);
void surface_enter_output(struct wlr_surface *surface,
	struct sway_output *output);
void surface_leave_output(struct wlr_surface *surface,
	struct sway_output *output);

#endif