wlserver: Add wlserver_surface_is_async

This commit is contained in:
Joshua Ashton 2022-08-31 11:53:11 +00:00 committed by Joshie
parent 2e62575518
commit 55f764fa7f
2 changed files with 7 additions and 0 deletions

View file

@ -939,6 +939,11 @@ void wlserver_send_frame_done( struct wlr_surface *surf, const struct timespec *
wlr_surface_send_frame_done( surf, when );
}
bool wlserver_surface_is_async( struct wlr_surface *surf )
{
return get_wl_surface_info( surf )->presentation_hint != 0;
}
void wlserver_touchmotion( double x, double y, int touch_id, uint32_t time )
{
if ( wlserver.mouse_focus_surface != NULL )

View file

@ -158,6 +158,8 @@ void wlserver_touchup( int touch_id, uint32_t time );
void wlserver_send_frame_done( struct wlr_surface *surf, const struct timespec *when );
bool wlserver_surface_is_async( struct wlr_surface *surf );
struct wlserver_output_info {
const char *name;
const char *description;