aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-01-28 10:51:33 +0800
committerPo Lu2022-01-28 10:51:33 +0800
commitbc404cd8ea911917f56661d16a96c4da15a3ffbe (patch)
tree5a6dd6fe337949613dc87b66dbd4c4a96ad44e58 /src
parent47b7ec2a3d05bccfc710c9e0d0fc8278ed20afd8 (diff)
downloademacs-bc404cd8ea911917f56661d16a96c4da15a3ffbe.tar.gz
emacs-bc404cd8ea911917f56661d16a96c4da15a3ffbe.zip
* src/xterm.c (handle_one_xevent): Remove obsolete workaround.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 30a3aee20ee..3f277c5b873 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10395,14 +10395,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
10395#ifdef HAVE_XWIDGETS 10395#ifdef HAVE_XWIDGETS
10396 if (xwidget_view) 10396 if (xwidget_view)
10397 { 10397 {
10398 /* Don't send an enter event to the xwidget if the 10398 xwidget_motion_or_crossing (xwidget_view, event);
10399 first button is pressed, to avoid it releasing
10400 the passive grab. I don't know why that happens,
10401 but this workaround makes dragging to select text
10402 work again. */
10403 if (!(enter->buttons.mask_len
10404 && XIMaskIsSet (enter->buttons.mask, 1)))
10405 xwidget_motion_or_crossing (xwidget_view, event);
10406 10399
10407 goto XI_OTHER; 10400 goto XI_OTHER;
10408 } 10401 }