From d9686a0caa04914e84f1b776ed32c756f0fe4774 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 30 Aug 2021 09:27:23 +0300 Subject: [PATCH] Avoid using Screens in Workspace::updateClientArea() Use AbstractOutput for consistency sake. --- src/workspace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index c816c23607..0cb9dbe6e5 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -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;