mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
Apparently on Wayland we need to set the swap interval on every window not just the first. It's somehow not shared even though the context is shared? Fixes #5495
This commit is contained in:
@@ -856,7 +856,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args, PyObject *kw) {
|
|||||||
// changing, in case the background color is not black
|
// changing, in case the background color is not black
|
||||||
blank_canvas(is_semi_transparent ? OPT(background_opacity) : 1.0f, OPT(background));
|
blank_canvas(is_semi_transparent ? OPT(background_opacity) : 1.0f, OPT(background));
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
if (is_first_window) glfwSwapInterval(OPT(sync_to_monitor) && !global_state.is_wayland ? 1 : 0);
|
glfwSwapInterval(OPT(sync_to_monitor) && !global_state.is_wayland ? 1 : 0);
|
||||||
#endif
|
#endif
|
||||||
// On Wayland the initial swap is allowed only after the first XDG configure event
|
// On Wayland the initial swap is allowed only after the first XDG configure event
|
||||||
if (glfwAreSwapsAllowed(glfw_window)) glfwSwapBuffers(glfw_window);
|
if (glfwAreSwapsAllowed(glfw_window)) glfwSwapBuffers(glfw_window);
|
||||||
|
|||||||
Reference in New Issue
Block a user