Avoid using Screens in Workspace::updateClientArea()

Use AbstractOutput for consistency sake.
This commit is contained in:
Vlad Zahorodnii 2021-08-30 09:27:23 +03:00
parent acb5c04fae
commit d9686a0caa

View file

@ -2205,8 +2205,8 @@ void Workspace::updateClientArea()
}
// sanity check that a strut doesn't exclude a complete screen geometry
// this is a violation to EWMH, as KWin just ignores the strut
for (int i = 0; i < Screens::self()->count(); i++) {
if (!r.intersects(Screens::self()->geometry(i))) {
for (const AbstractOutput *output : outputs) {
if (!r.intersects(output->geometry())) {
qCDebug(KWIN_CORE) << "Adjusted client area would exclude a complete screen, ignore";
r = desktopArea;
break;