Changeset View
Changeset View
Standalone View
Standalone View
effects/presentwindows/presentwindows.cpp
Show First 20 Lines • Show All 961 Lines • ▼ Show 20 Line(s) | 910 | { | |||
---|---|---|---|---|---|
962 | int screens = effects->numScreens(); | 962 | int screens = effects->numScreens(); | ||
963 | for (int screen = 0; screen < screens; screen++) { | 963 | for (int screen = 0; screen < screens; screen++) { | ||
964 | EffectWindowList windows; | 964 | EffectWindowList windows; | ||
965 | windows = windowlists[screen]; | 965 | windows = windowlists[screen]; | ||
966 | 966 | | |||
967 | // Don't rearrange if the grid is the same size as what it was before to prevent | 967 | // Don't rearrange if the grid is the same size as what it was before to prevent | ||
968 | // windows moving to a better spot if one was filtered out. | 968 | // windows moving to a better spot if one was filtered out. | ||
969 | if (m_layoutMode == LayoutRegularGrid && | 969 | if (m_layoutMode == LayoutRegularGrid && | ||
970 | m_gridSizes[screen].columns * m_gridSizes[screen].rows && | 970 | m_gridSizes[screen].columns && | ||
971 | m_gridSizes[screen].rows && | ||||
971 | windows.size() < m_gridSizes[screen].columns * m_gridSizes[screen].rows && | 972 | windows.size() < m_gridSizes[screen].columns * m_gridSizes[screen].rows && | ||
972 | windows.size() > (m_gridSizes[screen].columns - 1) * m_gridSizes[screen].rows && | 973 | windows.size() > (m_gridSizes[screen].columns - 1) * m_gridSizes[screen].rows && | ||
973 | windows.size() > m_gridSizes[screen].columns *(m_gridSizes[screen].rows - 1)) | 974 | windows.size() > m_gridSizes[screen].columns *(m_gridSizes[screen].rows - 1)) | ||
974 | continue; | 975 | continue; | ||
975 | 976 | | |||
976 | // No point continuing if there is no windows to process | 977 | // No point continuing if there is no windows to process | ||
977 | if (!windows.count()) | 978 | if (!windows.count()) | ||
978 | continue; | 979 | continue; | ||
▲ Show 20 Lines • Show All 1080 Lines • Show Last 20 Lines |