aboutsummaryrefslogtreecommitdiffstats
path: root/oldXMenu
diff options
context:
space:
mode:
authorPo Lu2022-10-21 19:19:33 +0800
committerPo Lu2022-10-21 19:19:48 +0800
commitea70e545c90e0cbfe3ea33c31ba3ef4f3487c32c (patch)
tree84597e41e5fecc497010b3ea76525e70d5c0991a /oldXMenu
parent4b40b790ae003032daa612807bc59e17f2c29dca (diff)
downloademacs-ea70e545c90e0cbfe3ea33c31ba3ef4f3487c32c.tar.gz
emacs-ea70e545c90e0cbfe3ea33c31ba3ef4f3487c32c.zip
Fix delivery of window manager ping events during menu
* oldXMenu/Activate.c (XMenuActivateSetExposeFunction) (XMenuActivate): * oldXMenu/XMenu.h: Remove expose functions. * src/msdos.h (XMenuSetAEQ): Remove no longer used function. * src/xmenu.c (x_menu_expose_event): Delete function. (x_menu_dispatch_event): New function. (x_menu_show): Set it as the XMenu event handler.
Diffstat (limited to 'oldXMenu')
-rw-r--r--oldXMenu/Activate.c10
-rw-r--r--oldXMenu/XMenu.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/oldXMenu/Activate.c b/oldXMenu/Activate.c
index e679c2ffed6..781c05bd026 100644
--- a/oldXMenu/Activate.c
+++ b/oldXMenu/Activate.c
@@ -122,7 +122,6 @@ int x_menu_grab_keyboard = 1;
122static Wait_func wait_func; 122static Wait_func wait_func;
123static void* wait_data; 123static void* wait_data;
124static Translate_func translate_func = NULL; 124static Translate_func translate_func = NULL;
125static Expose_func expose_func = NULL;
126 125
127void 126void
128XMenuActivateSetWaitFunction (Wait_func func, void *data) 127XMenuActivateSetWaitFunction (Wait_func func, void *data)
@@ -137,12 +136,6 @@ XMenuActivateSetTranslateFunction (Translate_func func)
137 translate_func = func; 136 translate_func = func;
138} 137}
139 138
140void
141XMenuActivateSetExposeFunction (Expose_func func)
142{
143 expose_func = func;
144}
145
146int 139int
147XMenuActivate( 140XMenuActivate(
148 register Display *display, /* Display to put menu on. */ 141 register Display *display, /* Display to put menu on. */
@@ -346,9 +339,6 @@ XMenuActivate(
346 feq = feq_tmp; 339 feq = feq_tmp;
347 } 340 }
348 else if (_XMEventHandler) (*_XMEventHandler)(&event); 341 else if (_XMEventHandler) (*_XMEventHandler)(&event);
349
350 if (expose_func)
351 expose_func (&event);
352 break; 342 break;
353 } 343 }
354 if (event_xmp->activated) { 344 if (event_xmp->activated) {
diff --git a/oldXMenu/XMenu.h b/oldXMenu/XMenu.h
index 54061235ae7..2eee18a3844 100644
--- a/oldXMenu/XMenu.h
+++ b/oldXMenu/XMenu.h
@@ -259,7 +259,6 @@ typedef void (*Wait_func)(void*);
259 XPutBackEvent on an equivalent artificial core event on any 259 XPutBackEvent on an equivalent artificial core event on any
260 function it wants to translate. */ 260 function it wants to translate. */
261typedef void (*Translate_func)(XEvent *); 261typedef void (*Translate_func)(XEvent *);
262typedef void (*Expose_func)(XEvent *);
263 262
264/* 263/*
265 * XMenu library routine declarations. 264 * XMenu library routine declarations.
@@ -281,7 +280,6 @@ int XMenuLocate(Display *display, XMenu *menu, int p_num, int s_num, int x_pos,
281void XMenuSetFreeze(XMenu *menu, int freeze); 280void XMenuSetFreeze(XMenu *menu, int freeze);
282void XMenuActivateSetWaitFunction(Wait_func func, void *data); 281void XMenuActivateSetWaitFunction(Wait_func func, void *data);
283void XMenuActivateSetTranslateFunction(Translate_func func); 282void XMenuActivateSetTranslateFunction(Translate_func func);
284void XMenuActivateSetExposeFunction(Expose_func func);
285int XMenuActivate(Display *display, XMenu *menu, int *p_num, int *s_num, int x_pos, int y_pos, unsigned int event_mask, char **data, void (*help_callback) (char const *, int, int)); 283int XMenuActivate(Display *display, XMenu *menu, int *p_num, int *s_num, int x_pos, int y_pos, unsigned int event_mask, char **data, void (*help_callback) (char const *, int, int));
286char *XMenuPost(Display *display, XMenu *menu, int *p_num, int *s_num, int x_pos, int y_pos, int event_mask); 284char *XMenuPost(Display *display, XMenu *menu, int *p_num, int *s_num, int x_pos, int y_pos, int event_mask);
287int XMenuDeletePane(Display *display, XMenu *menu, int p_num); 285int XMenuDeletePane(Display *display, XMenu *menu, int p_num);