Fix warnings
SVN_SILENT
This commit is contained in:
parent
31d9e106dc
commit
a4ef906b14
2 changed files with 2 additions and 2 deletions
|
@ -1274,7 +1274,7 @@ void DesktopGridEffect::slotNumberDesktopsChanged(uint old)
|
|||
{
|
||||
if (!activated)
|
||||
return;
|
||||
const int desktop = effects->numberOfDesktops();
|
||||
const uint desktop = effects->numberOfDesktops();
|
||||
bool enableAdd = desktop < 20;
|
||||
bool enableRemove = desktop > 1;
|
||||
for (QHash< DesktopButtonsView*, EffectWindow* >::iterator it = m_desktopButtonsViews.begin();
|
||||
|
|
|
@ -207,7 +207,7 @@ bool Client::manage(Window w, bool isMapped)
|
|||
}
|
||||
|
||||
if (desk == 0) // Assume window wants to be visible on the current desktop
|
||||
desk = isDesktop() ? NET::OnAllDesktops : VirtualDesktopManager::self()->current();
|
||||
desk = isDesktop() ? static_cast<int>(NET::OnAllDesktops) : VirtualDesktopManager::self()->current();
|
||||
desk = rules()->checkDesktop(desk, !isMapped);
|
||||
if (desk != NET::OnAllDesktops) // Do range check
|
||||
desk = qBound(1, desk, static_cast<int>(VirtualDesktopManager::self()->count()));
|
||||
|
|
Loading…
Reference in a new issue