Avoid sending a configure event when starting interactive move

There's nothing to configure that needs an acknowledgement from the
client.
This commit is contained in:
Vlad Zahorodnii 2022-01-04 18:27:36 +02:00
parent feaebcf81d
commit 457e9faaa1

View file

@ -1007,16 +1007,17 @@ bool XdgToplevelClient::doStartInteractiveMoveResize()
{
if (interactiveMoveResizePointerMode() != PositionCenter) {
m_nextStates |= XdgToplevelInterface::State::Resizing;
scheduleConfigure();
}
scheduleConfigure();
return true;
}
void XdgToplevelClient::doFinishInteractiveMoveResize()
{
m_nextStates &= ~XdgToplevelInterface::State::Resizing;
scheduleConfigure();
if (m_nextStates & XdgToplevelInterface::State::Resizing) {
m_nextStates &= ~XdgToplevelInterface::State::Resizing;
scheduleConfigure();
}
}
bool XdgToplevelClient::takeFocus()