wayland: Prevent snapping normal windows to notifications and OSDs

It's annoying.
This commit is contained in:
Vlad Zahorodnii 2021-01-20 14:25:42 +02:00
parent 26505e14dd
commit 69adaf64df

View file

@ -2462,7 +2462,8 @@ QPoint Workspace::adjustClientPosition(AbstractClient* c, QPoint pos, bool unres
continue; // wrong virtual desktop continue; // wrong virtual desktop
if (!(*l)->isOnCurrentActivity()) if (!(*l)->isOnCurrentActivity())
continue; // wrong activity continue; // wrong activity
if ((*l)->isDesktop() || (*l)->isSplash()) if ((*l)->isDesktop() || (*l)->isSplash() || (*l)->isNotification() ||
(*l)->isCriticalNotification() || (*l)->isOnScreenDisplay())
continue; continue;
lx = (*l)->x(); lx = (*l)->x();