Simplify desktop check in AbstractClient::setOnAllDesktops()
This commit is contained in:
parent
86fa79c33b
commit
8e8fc55b0b
1 changed files with 2 additions and 2 deletions
|
@ -539,9 +539,9 @@ void AbstractClient::leaveDesktop(VirtualDesktop *virtualDesktop)
|
|||
|
||||
void AbstractClient::setOnAllDesktops(bool b)
|
||||
{
|
||||
if ((b && isOnAllDesktops()) ||
|
||||
(!b && !isOnAllDesktops()))
|
||||
if (b == isOnAllDesktops()) {
|
||||
return;
|
||||
}
|
||||
if (b) {
|
||||
setDesktops({});
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue