]> git.eshelyaron.com Git - emacs.git/commitdiff
Add PropertyChangeMask to the standard event set
authorPo Lu <luangruo@yahoo.com>
Tue, 1 Mar 2022 12:15:02 +0000 (20:15 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 1 Mar 2022 12:15:02 +0000 (20:15 +0800)
* src/xfns.c (x_window): Remove special Motif code.
* src/xterm.h (STANDARD_EVENT_SET): Add PropertyChangeMask.

src/xfns.c
src/xterm.h

index 09bad7150254fd663ce2b1f5c355f3e1724bcb6a..65218b3fc0738fa779fb37865ad9da982b5681d1 100644 (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))
index f6c251649fffa3d75a0b61a86ef86492249be2b6..7f45e2f172ed1eec622eb1f9746934f45a6902a1 100644 (file)
@@ -132,6 +132,7 @@ INLINE_HEADER_BEGIN
    | FocusChangeMask           \
    | LeaveWindowMask           \
    | EnterWindowMask           \
+   | PropertyChangeMask                \
    | VisibilityChangeMask)
 
 #ifdef HAVE_X11R6_XIM