From 9d425d379732d68a92430caeee134884db3c56a8 Mon Sep 17 00:00:00 2001 From: Zhang Dingyuan Date: Fri, 24 Mar 2023 09:41:33 +0800 Subject: [PATCH] fix: QWaylandWindow not has shellSurfaceCreated signal it is in dwayland/server/ddeshell_interface.h --- wayland/wayland-shell/dwaylandshellmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wayland/wayland-shell/dwaylandshellmanager.cpp b/wayland/wayland-shell/dwaylandshellmanager.cpp index 7d78cda0..cfe610f8 100644 --- a/wayland/wayland-shell/dwaylandshellmanager.cpp +++ b/wayland/wayland-shell/dwaylandshellmanager.cpp @@ -349,7 +349,7 @@ QWaylandShellSurface *DWaylandShellManager::createShellSurface(QWaylandShellInte HookOverride(window, &QPlatformWindow::frameMargins, DWaylandShellManager::frameMargins); HookOverride(window, &QPlatformWindow::setWindowFlags, DWaylandShellManager::setWindowFlags); - QObject::connect(window, &QWaylandWindow::shellSurfaceCreated, [window] { + QObject::connect(window, &QWaylandWindow::wlSurfaceCreated, [window] { handleGeometryChange(window); handleWindowStateChanged(window); }); @@ -388,7 +388,7 @@ QWaylandShellSurface *DWaylandShellManager::createShellSurface(QWaylandShellInte // 如果kwayland的server窗口装饰已转变完成,则为窗口创建边框 if (kwayland_ssd) { - QObject::connect(window, &QWaylandWindow::shellSurfaceCreated, std::bind(createServerDecoration, window)); + QObject::connect(window, &QWaylandWindow::wlSurfaceCreated, std::bind(createServerDecoration, window)); } else { qDebug()<<"====kwayland_ssd creat failed"; }