Fix regression of setting a window to all desktops
The logic to prevent errornous desktops broke setting a window to all desktops through the task manager. For some reason all desktops is -1 which is of course less than 1 ;-)
This commit is contained in:
parent
69d944e64a
commit
20941aca53
1 changed files with 1 additions and 1 deletions
|
@ -1683,7 +1683,7 @@ void Workspace::setNumberOfDesktops(int n)
|
|||
*/
|
||||
void Workspace::sendClientToDesktop(Client* c, int desk, bool dont_activate)
|
||||
{
|
||||
if (desk < 1 || desk > numberOfDesktops())
|
||||
if ((desk < 1 && desk != NET::OnAllDesktops) || desk > numberOfDesktops())
|
||||
return;
|
||||
int old_desktop = c->desktop();
|
||||
bool was_on_desktop = c->isOnDesktop(desk) || c->isOnAllDesktops();
|
||||
|
|
Loading…
Reference in a new issue