From 9e5d17d131bfcef65d9a251b20c1beb4cf98719f Mon Sep 17 00:00:00 2001 From: reionwong Date: Mon, 16 Aug 2021 09:19:03 +0800 Subject: [PATCH] Fix view struts --- src/xwindowinterface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xwindowinterface.cpp b/src/xwindowinterface.cpp index 0b5e962..a6074a7 100644 --- a/src/xwindowinterface.cpp +++ b/src/xwindowinterface.cpp @@ -151,8 +151,7 @@ void XWindowInterface::setViewStruts(QWindow *view, DockSettings::Direction dire const QRect currentScreen {screen->geometry()}; const QRect wholeScreen { {0, 0}, screen->virtualSize() }; -// const int edgeMargins = compositing ? DockSettings::self()->edgeMargins() : 0; - int edgeMargins = 0; + const int edgeMargins = compositing ? DockSettings::self()->edgeMargins() : 0; switch (direction) { case DockSettings::Left: {