Clean up Workspace::activeOutput()

Having both "active_client" and "client" is leftover after the active
output property being in the Screens class.
This commit is contained in:
Vlad Zahorodnii 2022-01-10 11:10:18 +02:00
parent a2774e26a9
commit 861eac9205

View file

@ -2416,9 +2416,8 @@ AbstractOutput *Workspace::activeOutput() const
return kwinApp()->platform()->outputAt(Cursors::self()->mouse()->pos());
}
AbstractClient *client = Workspace::self()->activeClient();
if (active_client && !client->isOnOutput(m_activeOutput)) {
return client->output();
if (active_client && !active_client->isOnOutput(m_activeOutput)) {
return active_client->output();
}
return m_activeOutput;