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:
parent
a2774e26a9
commit
861eac9205
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue