Commit ef894f34 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

xdgshellclient: fix initial placement with maximize

BUG: 439986
parent 6a68caef
......@@ -784,7 +784,7 @@ void Workspace::addShellClient(AbstractClient *client)
if (client->isRequestedFullScreen()) {
placementDone = true;
}
if (client->maximizeMode() == MaximizeMode::MaximizeFull) {
if (client->requestedMaximizeMode() == MaximizeMode::MaximizeFull) {
placementDone = true;
}
if (client->rules()->checkPosition(invalidPoint, true) != invalidPoint) {
......
......@@ -369,6 +369,7 @@ XdgToplevelClient::XdgToplevelClient(XdgToplevelInterface *shellSurface)
setOnActivities({a->current()});
}
#endif
move(workspace()->activeOutput()->geometry().center());
connect(shellSurface, &XdgToplevelInterface::windowTitleChanged,
this, &XdgToplevelClient::handleWindowTitleChanged);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment