Skip to content

Commit

Permalink
Wayland: Fix window not visible after initial swap
Browse files Browse the repository at this point in the history
A window created with GLFW_VISIBLE set was not made visible by the
initial buffer swap during context attribute refresh.

Regression introduced by @elmindreda in
094aa6d.
  • Loading branch information
elmindreda committed Dec 31, 2021
1 parent 12c2ccd commit c05acf6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/wl_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,14 @@ static GLFWbool createSurface(_GLFWwindow* window,
if (!window->wl.transparent)
setOpaqueRegion(window);

if (wndconfig->visible)
{
if (!createXdgSurface(window))
return GLFW_FALSE;

window->wl.visible = GLFW_TRUE;
}

return GLFW_TRUE;
}

Expand Down

0 comments on commit c05acf6

Please sign in to comment.