xdgshell: don't allow applet popups to be moved
This commit is contained in:
parent
5be18da8ac
commit
137cd9c031
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue