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:
parent
5578437522
commit
b41a1eba50
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue