Skip to content

Commit

Permalink
fix: QWaylandWindow not has shellSurfaceCreated signal
Browse files Browse the repository at this point in the history
it is in dwayland/server/ddeshell_interface.h
  • Loading branch information
justforlxz committed Mar 24, 2023
1 parent bbfd350 commit 9d425d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wayland/wayland-shell/dwaylandshellmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down Expand Up @@ -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";
}
Expand Down

0 comments on commit 9d425d3

Please sign in to comment.