Skip to content

Commit

Permalink
Wayland: Fix GLFW_VISIBLE affecting full screen
Browse files Browse the repository at this point in the history
Full screen window creation was not ignoring the GLFW_VISIBLE hint.
  • Loading branch information
elmindreda committed Dec 31, 2021
1 parent 8aaea57 commit 715b874
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ information on what to include when reporting a bug.
- [Wayland] Bugfix: Window hiding and showing did not work (#1492,#1731)
- [Wayland] Bugfix: A key being repeated was not released when window lost focus
- [Wayland] Bugfix: Showing a hidden window did not emit a window refresh event
- [Wayland] Bugfix: Full screen window creation did not ignore `GLFW_VISIBLE`
- [POSIX] Removed use of deprecated function `gettimeofday`
- [POSIX] Bugfix: `CLOCK_MONOTONIC` was not correctly tested for or enabled
- [WGL] Disabled the DWM swap interval hack for Windows 8 and later (#1072)
Expand Down
2 changes: 1 addition & 1 deletion src/wl_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ static GLFWbool createSurface(_GLFWwindow* window,
if (!window->wl.transparent)
setOpaqueRegion(window);

if (wndconfig->visible)
if (window->monitor || wndconfig->visible)
{
if (!createXdgSurface(window))
return GLFW_FALSE;
Expand Down

0 comments on commit 715b874

Please sign in to comment.