2019-10-10 00:06:30 +11:00
|
|
|
#ifndef _SWAY_SURFACE_H
|
|
|
|
#define _SWAY_SURFACE_H
|
2022-08-15 14:54:07 +10:00
|
|
|
#include <wlr/types/wlr_surface.h>
|
2019-10-10 00:06:30 +11:00
|
|
|
|
|
|
|
struct sway_surface {
|
|
|
|
struct wlr_surface *wlr_surface;
|
|
|
|
|
|
|
|
struct wl_listener destroy;
|
2019-09-26 00:35:41 +10: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-10 00:06:30 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|