xdgshell: don't allow applet popups to be moved

This commit is contained in:
Xaver Hugl 2022-07-13 11:29:59 +02:00 committed by Vlad Zahorodnii
parent 5be18da8ac
commit 137cd9c031
2 changed files with 2 additions and 2 deletions

View file

@ -2511,7 +2511,7 @@ bool Window::performMouseCommand(Options::MouseCommand cmd, const QPoint &global
// fallthrough // fallthrough
case Options::MouseMove: case Options::MouseMove:
case Options::MouseUnrestrictedMove: { case Options::MouseUnrestrictedMove: {
if (!isMovableAcrossScreens()) { if (!isMovable() || !isMovableAcrossScreens()) {
break; break;
} }
if (isInteractiveMoveResize()) { if (isInteractiveMoveResize()) {

View file

@ -653,7 +653,7 @@ bool XdgToplevelWindow::isMovable() const
if (isRequestedFullScreen()) { if (isRequestedFullScreen()) {
return false; return false;
} }
if (isSpecialWindow() && !isSplash() && !isToolbar() && !isAppletPopup()) { if ((isSpecialWindow() && !isSplash() && !isToolbar()) || isAppletPopup()) {
return false; return false;
} }
if (rules()->checkPosition(invalidPoint) != invalidPoint) { if (rules()->checkPosition(invalidPoint) != invalidPoint) {