This commit is contained in:
Kovid Goyal
2024-03-24 14:07:35 +05:30
parent 333ea519ed
commit 0b6943fb5a
3 changed files with 3 additions and 2 deletions

1
glfw/wl_window.c vendored
View File

@@ -2543,5 +2543,6 @@ GLFWAPI void glfwWaylandRedrawCSDWindowTitle(GLFWwindow *handle) {
GLFWAPI void glfwWaylandSetupLayerShellForNextWindow(GLFWLayerShellConfig c) {
if (layer_shell_config_for_next_window.output_name) free((void*)layer_shell_config_for_next_window.output_name);
layer_shell_config_for_next_window = c;
if (layer_shell_config_for_next_window.output_name && !layer_shell_config_for_next_window.output_name[0]) layer_shell_config_for_next_window.output_name = NULL;
if (layer_shell_config_for_next_window.output_name) layer_shell_config_for_next_window.output_name = strdup(layer_shell_config_for_next_window.output_name);
}