set desktop w/o desktop hint on all desktops

helps with legacy desktops replacing decorations like IceWM which withdraw the desktop settings

REVIEW: 104112
This commit is contained in:
Thomas Lübking 2012-02-29 01:17:42 +01:00
parent 3f0b4826dd
commit c885d88f28

View file

@ -220,7 +220,7 @@ bool Client::manage(Window w, bool isMapped)
}
}
if (desk == 0) // Assume window wants to be visible on the current desktop
desk = workspace()->currentDesktop();
desk = isDesktop() ? NET::OnAllDesktops : workspace()->currentDesktop();
desk = rules()->checkDesktop(desk, !isMapped);
if (desk != NET::OnAllDesktops) // Do range check
desk = qMax(1, qMin(workspace()->numberOfDesktops(), desk));