diff --git a/src/wl_window.c b/src/wl_window.c index a9c71b6e..7b0737e7 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -789,6 +789,11 @@ static GLFWbool createLibdecorFrame(_GLFWwindow* window) return GLFW_FALSE; } + struct libdecor_state* frameState = + libdecor_state_new(window->wl.width, window->wl.height); + libdecor_frame_commit(window->wl.libdecor.frame, frameState, NULL); + libdecor_state_free(frameState); + if (strlen(window->wl.title)) libdecor_frame_set_title(window->wl.libdecor.frame, window->wl.title);