Commit 75d71a1c authored by Ismael Asensio's avatar Ismael Asensio
Browse files

AbstractClient: Re-check screen rules on screen enabled

BUG: 409979
FIXED-IN: 5.25
parent a518a4d5
Pipeline #164758 passed with stage
in 15 minutes and 26 seconds
......@@ -2921,7 +2921,6 @@ void TestXdgShellClientRules::testScreenForce()
kwinApp()->platform()->applyOutputChanges(config);
QVERIFY(outputs.at(1)->isEnabled());
QEXPECT_FAIL("", "Disabling and enabling an output does not move the client to the Forced screen", Continue);
QCOMPARE(m_client->output()->name(), outputs.at(1)->name());
// Close and reopen the client.
......
......@@ -1227,6 +1227,11 @@ void Workspace::slotOutputEnabled(Output *output)
connect(output, &Output::geometryChanged, this, &Workspace::desktopResized);
desktopResized();
// Trigger a re-check of output-related rules on all clients
for (AbstractClient *client : qAsConst(m_allClients)) {
sendClientToOutput(client, client->output());
}
}
void Workspace::slotOutputDisabled(Output *output)
......
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