From 64e701fdafa6339256488d14d5561c830b0a43c7 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 19 Feb 2024 10:55:25 +0200 Subject: [PATCH] Synchronize input transformation regardless of interactive move resize status This check is old and I'm not sure why it even exists. It should not be needed in general. The problem with this check is that when interactive move/resize operation finishes, the seat input transformation is not synchronized. --- src/pointer_input.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/pointer_input.cpp b/src/pointer_input.cpp index 1f3be8da00..b6d34b33a2 100644 --- a/src/pointer_input.cpp +++ b/src/pointer_input.cpp @@ -542,20 +542,7 @@ void PointerInputRedirection::focusUpdate(Window *focusOld, Window *focusNow) seat->notifyPointerEnter(focusNow->surface(), m_pos, focusNow->inputTransformation()); m_focusGeometryConnection = connect(focusNow, &Window::inputTransformationChanged, this, [this]() { - // TODO: why no assert possible? - if (!focus()) { - return; - } - // TODO: can we check on the window instead? - if (workspace()->moveResizeWindow()) { - // don't update while moving - return; - } - auto seat = waylandServer()->seat(); - if (focus()->surface() != seat->focusedPointerSurface()) { - return; - } - seat->setFocusedPointerSurfaceTransformation(focus()->inputTransformation()); + waylandServer()->seat()->setFocusedPointerSurfaceTransformation(focus()->inputTransformation()); }); m_constraintsConnection = connect(focusNow->surface(), &SurfaceInterface::pointerConstraintsChanged,