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
|
// fallthrough
|
||||||
case Options::MouseMove:
|
case Options::MouseMove:
|
||||||
case Options::MouseUnrestrictedMove: {
|
case Options::MouseUnrestrictedMove: {
|
||||||
if (!isMovableAcrossScreens()) {
|
if (!isMovable() || !isMovableAcrossScreens()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (isInteractiveMoveResize()) {
|
if (isInteractiveMoveResize()) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue