Avoid using Screens in Workspace::updateClientArea()
Use AbstractOutput for consistency sake.
This commit is contained in:
parent
acb5c04fae
commit
d9686a0caa
1 changed files with 2 additions and 2 deletions
|
@ -2205,8 +2205,8 @@ void Workspace::updateClientArea()
|
||||||
}
|
}
|
||||||
// sanity check that a strut doesn't exclude a complete screen geometry
|
// sanity check that a strut doesn't exclude a complete screen geometry
|
||||||
// this is a violation to EWMH, as KWin just ignores the strut
|
// this is a violation to EWMH, as KWin just ignores the strut
|
||||||
for (int i = 0; i < Screens::self()->count(); i++) {
|
for (const AbstractOutput *output : outputs) {
|
||||||
if (!r.intersects(Screens::self()->geometry(i))) {
|
if (!r.intersects(output->geometry())) {
|
||||||
qCDebug(KWIN_CORE) << "Adjusted client area would exclude a complete screen, ignore";
|
qCDebug(KWIN_CORE) << "Adjusted client area would exclude a complete screen, ignore";
|
||||||
r = desktopArea;
|
r = desktopArea;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue