diff --git a/cogl/winsys/cogl-winsys-egl-kms.c b/cogl/winsys/cogl-winsys-egl-kms.c index 683bbc886..20c325cdd 100644 --- a/cogl/winsys/cogl-winsys-egl-kms.c +++ b/cogl/winsys/cogl-winsys-egl-kms.c @@ -40,6 +40,7 @@ #include #include +#include #include #include #include @@ -601,7 +602,7 @@ flip_all_crtcs (CoglDisplay *display, CoglFlipKMS *flip, int fb_id) ret = drmModePageFlip (kms_renderer->fd, crtc->id, fb_id, DRM_MODE_PAGE_FLIP_EVENT, flip); - if (ret) + if (ret != 0 && ret != -EACCES) { g_warning ("Failed to flip: %m"); kms_renderer->page_flips_not_supported = TRUE;