wayland: Ignore the move request for immovable windows

A window can be immovable due to various reasons, for example the window
position is enforced by a window rule or the window is shown in the full
screen mode. In which case, the move request has to be ignored.
This commit is contained in:
Vlad Zahorodnii 2020-12-06 19:09:15 +02:00
parent 5578437522
commit b41a1eba50

View file

@ -974,7 +974,11 @@ void XdgToplevelClient::handleMoveRequested(SeatInterface *seat, quint32 serial)
if (!seat->hasImplicitPointerGrab(serial) && !seat->hasImplicitTouchGrab(serial)) {
return;
}
performMouseCommand(Options::MouseMove, Cursors::self()->mouse()->pos());
if (isMovable()) {
performMouseCommand(Options::MouseMove, Cursors::self()->mouse()->pos());
} else {
qCDebug(KWIN_CORE) << this << "is immovable, ignoring the move request";
}
}
void XdgToplevelClient::handleResizeRequested(SeatInterface *seat, Qt::Edges edges, quint32 serial)