From c562a5c04fed1cad1c47cb59f57a99513d5ff9dc Mon Sep 17 00:00:00 2001 From: David Redondo Date: Thu, 2 Sep 2021 11:17:53 +0200 Subject: [PATCH] DragWlToX: Do not send position before enter According to the spec, enter has to be send before position. Sending position first seems to confuse clients, before this change X windows only seemed to get data when the pointer left and entered them for a second time. Now it works straight away. BUG:437406 --- src/xwl/drag_wl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xwl/drag_wl.cpp b/src/xwl/drag_wl.cpp index 7a0aa0a01a..147923c990 100644 --- a/src/xwl/drag_wl.cpp +++ b/src/xwl/drag_wl.cpp @@ -392,7 +392,7 @@ void Xvisit::determineProposedAction() m_proposedAction = DnDAction::None; } // send updated action to X target - if (oldProposedAction != m_proposedAction) { + if (oldProposedAction != m_proposedAction && m_state.entered) { sendPosition(waylandServer()->seat()->pointerPos()); } }