GHOST/wayland: set swap interval to 0

The Wayland server will not update hidden surfaces. This will block the
main event loop and thus also block updates to visible windows in a multi-
window setup.
This commit is contained in:
Christian Rauch 2020-06-01 00:20:04 +01:00
parent 7197017ea9
commit bb16f96973
1 changed files with 3 additions and 0 deletions

View File

@ -192,6 +192,9 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system,
if (setDrawingContextType(type) == GHOST_kFailure) {
GHOST_PRINT("Failed to create EGL context" << std::endl);
}
/* set swap interval to 0 to prevent blocking */
setSwapInterval(0);
}
GHOST_TSuccess GHOST_WindowWayland::close()