Changeset View
Changeset View
Standalone View
Standalone View
geometry.cpp
Context not available. | |||||
389 | if (desktop == NETWinInfo::OnAllDesktops || desktop == 0) | 389 | if (desktop == NETWinInfo::OnAllDesktops || desktop == 0) | ||
---|---|---|---|---|---|
390 | desktop = VirtualDesktopManager::self()->current(); | 390 | desktop = VirtualDesktopManager::self()->current(); | ||
391 | QRegion region; | 391 | QRegion region; | ||
392 | foreach (const StrutRect & rect, restrictedmovearea[desktop]) | 392 | for (const StrutRect & rect : qAsConst(restrictedmovearea[desktop])) | ||
393 | if (areas & rect.area()) | 393 | if (areas & rect.area()) | ||
394 | region += rect; | 394 | region += rect; | ||
395 | return region; | 395 | return region; | ||
Context not available. | |||||
405 | if (desktop == NETWinInfo::OnAllDesktops || desktop == 0) | 405 | if (desktop == NETWinInfo::OnAllDesktops || desktop == 0) | ||
406 | desktop = VirtualDesktopManager::self()->current(); | 406 | desktop = VirtualDesktopManager::self()->current(); | ||
407 | QRegion region; | 407 | QRegion region; | ||
408 | foreach (const StrutRect & rect, oldrestrictedmovearea.at(desktop)) | 408 | for (const StrutRect & rect : oldrestrictedmovearea.at(desktop)) | ||
409 | if (areas & rect.area()) | 409 | if (areas & rect.area()) | ||
410 | region += rect; | 410 | region += rect; | ||
411 | return region; | 411 | return region; | ||
Context not available. |