Commit 137cd9c0 authored by Xaver Hugl's avatar Xaver Hugl Committed by Vlad Zahorodnii
Browse files

xdgshell: don't allow applet popups to be moved

parent 5be18da8
Pipeline #204630 passed with stage
in 11 minutes and 19 seconds
......@@ -2511,7 +2511,7 @@ bool Window::performMouseCommand(Options::MouseCommand cmd, const QPoint &global
// fallthrough
case Options::MouseMove:
case Options::MouseUnrestrictedMove: {
if (!isMovableAcrossScreens()) {
if (!isMovable() || !isMovableAcrossScreens()) {
break;
}
if (isInteractiveMoveResize()) {
......
......@@ -653,7 +653,7 @@ bool XdgToplevelWindow::isMovable() const
if (isRequestedFullScreen()) {
return false;
}
if (isSpecialWindow() && !isSplash() && !isToolbar() && !isAppletPopup()) {
if ((isSpecialWindow() && !isSplash() && !isToolbar()) || isAppletPopup()) {
return false;
}
if (rules()->checkPosition(invalidPoint) != invalidPoint) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment