From 30cf1f34c583d6ed16bdc5b9578370f30c95fe1b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 9 Jul 2022 20:19:56 +0800 Subject: [PATCH] Avoid extra sync and atom name query on ending Motif DND * src/xterm.c (handle_one_xevent): Use `x_dnd_action_symbol' to set the Motif action instead. --- src/xterm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index d9485980fea..e10edbad3a9 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -16471,16 +16471,16 @@ handle_one_xevent (struct x_display_info *dpyinfo, switch (operation) { case XM_DRAG_MOVE: - x_dnd_action = dpyinfo->Xatom_XdndActionMove; + x_dnd_action_symbol = QXdndActionMove; break; case XM_DRAG_COPY: - x_dnd_action = dpyinfo->Xatom_XdndActionCopy; + x_dnd_action_symbol = QXdndActionCopy; break; /* This means XM_DRAG_OPERATION_IS_LINK (operation). */ default: - x_dnd_action = dpyinfo->Xatom_XdndActionLink; + x_dnd_action_symbol = QXdndActionLink; break; } -- 2.39.5