Compare commits

...

2 Commits

Author SHA1 Message Date
OlegAckbar
1d8ef1c3da
Merge 305fcbbf94 into 768e81a0eb 2025-08-15 00:08:33 +03:00
OlegAckbar
305fcbbf94
Wayland: unset output for fullscreen set operation 2024-06-24 22:39:43 +03:00

View File

@ -643,12 +643,12 @@ static void acquireMonitor(_GLFWwindow* window)
if (window->wl.libdecor.frame) if (window->wl.libdecor.frame)
{ {
libdecor_frame_set_fullscreen(window->wl.libdecor.frame, libdecor_frame_set_fullscreen(window->wl.libdecor.frame,
window->monitor->wl.output); NULL);
} }
else if (window->wl.xdg.toplevel) else if (window->wl.xdg.toplevel)
{ {
xdg_toplevel_set_fullscreen(window->wl.xdg.toplevel, xdg_toplevel_set_fullscreen(window->wl.xdg.toplevel,
window->monitor->wl.output); NULL);
} }
setIdleInhibitor(window, GLFW_TRUE); setIdleInhibitor(window, GLFW_TRUE);
@ -989,7 +989,7 @@ static GLFWbool createLibdecorFrame(_GLFWwindow* window)
if (window->monitor) if (window->monitor)
{ {
libdecor_frame_set_fullscreen(window->wl.libdecor.frame, libdecor_frame_set_fullscreen(window->wl.libdecor.frame,
window->monitor->wl.output); NULL);
setIdleInhibitor(window, GLFW_TRUE); setIdleInhibitor(window, GLFW_TRUE);
} }
else else
@ -1082,7 +1082,7 @@ static GLFWbool createXdgShellObjects(_GLFWwindow* window)
if (window->monitor) if (window->monitor)
{ {
xdg_toplevel_set_fullscreen(window->wl.xdg.toplevel, window->monitor->wl.output); xdg_toplevel_set_fullscreen(window->wl.xdg.toplevel, NULL);
setIdleInhibitor(window, GLFW_TRUE); setIdleInhibitor(window, GLFW_TRUE);
} }
else else