Fix view struts

This commit is contained in:
reionwong 2021-08-16 09:19:03 +08:00
parent b7dc7ec898
commit 9e5d17d131

View file

@ -151,8 +151,7 @@ void XWindowInterface::setViewStruts(QWindow *view, DockSettings::Direction dire
const QRect currentScreen {screen->geometry()}; const QRect currentScreen {screen->geometry()};
const QRect wholeScreen { {0, 0}, screen->virtualSize() }; const QRect wholeScreen { {0, 0}, screen->virtualSize() };
// const int edgeMargins = compositing ? DockSettings::self()->edgeMargins() : 0; const int edgeMargins = compositing ? DockSettings::self()->edgeMargins() : 0;
int edgeMargins = 0;
switch (direction) { switch (direction) {
case DockSettings::Left: { case DockSettings::Left: {