emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e361d0d7e5: Add PropertyChangeMask to the standard event set


From: Po Lu
Subject: master e361d0d7e5: Add PropertyChangeMask to the standard event set
Date: Tue, 1 Mar 2022 07:15:34 -0500 (EST)

branch: master
commit e361d0d7e5d3db8575d5d8673012aa4d7448ee54
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Add PropertyChangeMask to the standard event set
    
    * src/xfns.c (x_window): Remove special Motif code.
    * src/xterm.h (STANDARD_EVENT_SET): Add PropertyChangeMask.
---
 src/xfns.c  | 5 -----
 src/xterm.h | 1 +
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/xfns.c b/src/xfns.c
index 09bad71502..65218b3fc0 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -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))
diff --git a/src/xterm.h b/src/xterm.h
index f6c251649f..7f45e2f172 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -132,6 +132,7 @@ INLINE_HEADER_BEGIN
    | FocusChangeMask           \
    | LeaveWindowMask           \
    | EnterWindowMask           \
+   | PropertyChangeMask                \
    | VisibilityChangeMask)
 
 #ifdef HAVE_X11R6_XIM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]