Fix warnings

SVN_SILENT
This commit is contained in:
Martin Gräßlin 2013-01-08 11:04:07 +01:00
parent 31d9e106dc
commit a4ef906b14
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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()));