Skip to content

Commit 6944691

Browse files
committed
fix: incorrect exclusionZone in x11
It caused other screen's maxed window hide when show the window, and it's only a flag when exclusion zone is less zero in x11. pms: TASK-365879
1 parent be9ec38 commit 6944691

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frame/layershell/x11dlayershellemulation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ void LayerShellEmulation::onPositionChanged()
150150
*/
151151
void LayerShellEmulation::onExclusionZoneChanged()
152152
{
153+
// https://github.com/linuxdeepin/dde-shell/issues/379
154+
if (m_dlayerShellWindow->exclusionZone() <= 0)
155+
return;
153156
auto scaleFactor = qGuiApp->devicePixelRatio();
154157
auto *x11Application = qGuiApp->nativeInterface<QNativeInterface::QX11Application>();
155158
xcb_ewmh_connection_t ewmh_connection;

0 commit comments

Comments
 (0)