aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-07-09 20:19:56 +0800
committerPo Lu2022-07-09 20:20:36 +0800
commit30cf1f34c583d6ed16bdc5b9578370f30c95fe1b (patch)
treefd8ab5ab9e6ffed33e3fe728cf4828406c6e0ae7 /src
parent5d7b92448f1996a77a22c9bb0f4b8906552b60b6 (diff)
downloademacs-30cf1f34c583d6ed16bdc5b9578370f30c95fe1b.tar.gz
emacs-30cf1f34c583d6ed16bdc5b9578370f30c95fe1b.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c6
1 files 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,
16471 switch (operation) 16471 switch (operation)
16472 { 16472 {
16473 case XM_DRAG_MOVE: 16473 case XM_DRAG_MOVE:
16474 x_dnd_action = dpyinfo->Xatom_XdndActionMove; 16474 x_dnd_action_symbol = QXdndActionMove;
16475 break; 16475 break;
16476 16476
16477 case XM_DRAG_COPY: 16477 case XM_DRAG_COPY:
16478 x_dnd_action = dpyinfo->Xatom_XdndActionCopy; 16478 x_dnd_action_symbol = QXdndActionCopy;
16479 break; 16479 break;
16480 16480
16481 /* This means XM_DRAG_OPERATION_IS_LINK (operation). */ 16481 /* This means XM_DRAG_OPERATION_IS_LINK (operation). */
16482 default: 16482 default:
16483 x_dnd_action = dpyinfo->Xatom_XdndActionLink; 16483 x_dnd_action_symbol = QXdndActionLink;
16484 break; 16484 break;
16485 } 16485 }
16486 16486