From 69adaf64df2b2496d8f24a4001959111ce9e8d26 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 20 Jan 2021 14:25:42 +0200 Subject: [PATCH] wayland: Prevent snapping normal windows to notifications and OSDs It's annoying. --- workspace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index ca3b6c0b6b..7982cd319c 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -2462,7 +2462,8 @@ QPoint Workspace::adjustClientPosition(AbstractClient* c, QPoint pos, bool unres continue; // wrong virtual desktop if (!(*l)->isOnCurrentActivity()) continue; // wrong activity - if ((*l)->isDesktop() || (*l)->isSplash()) + if ((*l)->isDesktop() || (*l)->isSplash() || (*l)->isNotification() || + (*l)->isCriticalNotification() || (*l)->isOnScreenDisplay()) continue; lx = (*l)->x();