aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-03-01 20:15:02 +0800
committerPo Lu2022-03-01 20:15:02 +0800
commite361d0d7e5d3db8575d5d8673012aa4d7448ee54 (patch)
tree3b2d31208eb537a45067aa817e951e7bb407a37d /src
parentf980eed4c1b49393fb46f04538f2a9046cdfab2b (diff)
downloademacs-e361d0d7e5d3db8575d5d8673012aa4d7448ee54.tar.gz
emacs-e361d0d7e5d3db8575d5d8673012aa4d7448ee54.zip
Add PropertyChangeMask to the standard event set
* src/xfns.c (x_window): Remove special Motif code. * src/xterm.h (STANDARD_EVENT_SET): Add PropertyChangeMask.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c5
-rw-r--r--src/xterm.h1
2 files changed, 1 insertions, 5 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 09bad715025..65218b3fc07 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3803,13 +3803,8 @@ x_window (struct frame *f, long window_prompting)
3803 FRAME_DISPLAY_INFO (f)->Xatom_wm_protocols, 3803 FRAME_DISPLAY_INFO (f)->Xatom_wm_protocols,
3804 XA_ATOM, 32, PropModeAppend, NULL, 0); 3804 XA_ATOM, 32, PropModeAppend, NULL, 0);
3805 3805
3806#if !defined USE_MOTIF || !defined HAVE_XINPUT2
3807 /* Make all the standard events reach the Emacs frame. */ 3806 /* Make all the standard events reach the Emacs frame. */
3808 attributes.event_mask = STANDARD_EVENT_SET; 3807 attributes.event_mask = STANDARD_EVENT_SET;
3809#else
3810 /* This is used for Motif menus. */
3811 attributes.event_mask = STANDARD_EVENT_SET | PropertyChangeMask;
3812#endif
3813 3808
3814#ifdef HAVE_X_I18N 3809#ifdef HAVE_X_I18N
3815 if (FRAME_XIC (f)) 3810 if (FRAME_XIC (f))
diff --git a/src/xterm.h b/src/xterm.h
index f6c251649ff..7f45e2f172e 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -132,6 +132,7 @@ INLINE_HEADER_BEGIN
132 | FocusChangeMask \ 132 | FocusChangeMask \
133 | LeaveWindowMask \ 133 | LeaveWindowMask \
134 | EnterWindowMask \ 134 | EnterWindowMask \
135 | PropertyChangeMask \
135 | VisibilityChangeMask) 136 | VisibilityChangeMask)
136 137
137#ifdef HAVE_X11R6_XIM 138#ifdef HAVE_X11R6_XIM