Changeset View
Changeset View
Standalone View
Standalone View
geometry.cpp
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Line(s) | 131 | for (int i = 1; | |||
---|---|---|---|---|---|
133 | ++i) { | 133 | ++i) { | ||
134 | new_wareas[ i ] = desktopArea; | 134 | new_wareas[ i ] = desktopArea; | ||
135 | new_sareas[ i ].resize(nscreens); | 135 | new_sareas[ i ].resize(nscreens); | ||
136 | for (int iS = 0; | 136 | for (int iS = 0; | ||
137 | iS < nscreens; | 137 | iS < nscreens; | ||
138 | iS ++) | 138 | iS ++) | ||
139 | new_sareas[ i ][ iS ] = screens[ iS ]; | 139 | new_sareas[ i ][ iS ] = screens[ iS ]; | ||
140 | } | 140 | } | ||
141 | for (ClientList::ConstIterator it = clients.constBegin(); it != clients.constEnd(); ++it) { | 141 | for (auto it = clients.constBegin(); it != clients.constEnd(); ++it) { | ||
142 | if (!(*it)->hasStrut()) | 142 | if (!(*it)->hasStrut()) | ||
143 | continue; | 143 | continue; | ||
144 | QRect r = (*it)->adjustedClientArea(desktopArea, desktopArea); | 144 | QRect r = (*it)->adjustedClientArea(desktopArea, desktopArea); | ||
145 | // sanity check that a strut doesn't exclude a complete screen geometry | 145 | // sanity check that a strut doesn't exclude a complete screen geometry | ||
146 | // this is a violation to EWMH, as KWin just ignores the strut | 146 | // this is a violation to EWMH, as KWin just ignores the strut | ||
147 | for (int i = 0; i < Screens::self()->count(); i++) { | 147 | for (int i = 0; i < Screens::self()->count(); i++) { | ||
148 | if (!r.intersects(Screens::self()->geometry(i))) { | 148 | if (!r.intersects(Screens::self()->geometry(i))) { | ||
149 | qCDebug(KWIN_CORE) << "Adjusted client area would exclude a complete screen, ignore"; | 149 | qCDebug(KWIN_CORE) << "Adjusted client area would exclude a complete screen, ignore"; | ||
▲ Show 20 Lines • Show All 3262 Lines • Show Last 20 Lines |