2019-10-09 13:06:30 +00:00
|
|
|
#ifndef _SWAY_SURFACE_H
|
|
|
|
#define _SWAY_SURFACE_H
|
2022-01-13 10:15:39 +00:00
|
|
|
#include <wlr/types/wlr_compositor.h>
|
2019-10-09 13:06:30 +00:00
|
|
|
|
|
|
|
struct sway_surface {
|
|
|
|
struct wlr_surface *wlr_surface;
|
|
|
|
|
|
|
|
struct wl_listener destroy;
|
2019-09-25 14:35:41 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
2019-10-09 13:06:30 +00:00
|
|
|
};
|
|
|
|
|
2023-02-20 09:15:07 +00:00
|
|
|
void surface_update_outputs(struct wlr_surface *surface);
|
2023-02-08 14:25:14 +00:00
|
|
|
void surface_enter_output(struct wlr_surface *surface,
|
|
|
|
struct sway_output *output);
|
|
|
|
void surface_leave_output(struct wlr_surface *surface,
|
|
|
|
struct sway_output *output);
|
|
|
|
|
2019-10-09 13:06:30 +00:00
|
|
|
#endif
|