浏览代码

Wayland: commit surface on window creation

This is needed for initializing xdg_surfaces when not using libdecor.
Now the pure xdg_shell code path should work again.
Riteo 1 年之前
父节点
当前提交
a852e76196
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      platform/linuxbsd/wayland/wayland_thread.cpp

+ 2 - 0
platform/linuxbsd/wayland/wayland_thread.cpp

@@ -3245,6 +3245,8 @@ void WaylandThread::window_create(DisplayServer::WindowID p_window_id, int p_wid
 		zxdg_exported_v1_add_listener(ws.xdg_exported, &xdg_exported_listener, &ws);
 	}
 
+	wl_surface_commit(ws.wl_surface);
+
 	// Wait for the surface to be configured before continuing.
 	wl_display_roundtrip(wl_display);
 }