Add PropertyChangeMask to the standard event set

* src/xfns.c (x_window): Remove special Motif code.
* src/xterm.h (STANDARD_EVENT_SET): Add PropertyChangeMask.
This commit is contained in:
Po Lu 2022-03-01 20:15:02 +08:00
parent f980eed4c1
commit e361d0d7e5
2 changed files with 1 additions and 5 deletions

View file

@ -3803,13 +3803,8 @@ x_window (struct frame *f, long window_prompting)
FRAME_DISPLAY_INFO (f)->Xatom_wm_protocols,
XA_ATOM, 32, PropModeAppend, NULL, 0);
#if !defined USE_MOTIF || !defined HAVE_XINPUT2
/* Make all the standard events reach the Emacs frame. */
attributes.event_mask = STANDARD_EVENT_SET;
#else
/* This is used for Motif menus. */
attributes.event_mask = STANDARD_EVENT_SET | PropertyChangeMask;
#endif
#ifdef HAVE_X_I18N
if (FRAME_XIC (f))

View file

@ -132,6 +132,7 @@ INLINE_HEADER_BEGIN
| FocusChangeMask \
| LeaveWindowMask \
| EnterWindowMask \
| PropertyChangeMask \
| VisibilityChangeMask)
#ifdef HAVE_X11R6_XIM