diff options
author | Po Lu <luangruo@yahoo.com> | 2022-03-07 21:36:25 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-03-07 21:36:25 +0800 |
commit | 418e5da5d308b4e440f28545eb139211066b48a4 (patch) | |
tree | 6061adb42a47040a10f8d36854f6e924c4202ac6 /oldXMenu/XMenu.h | |
parent | 8a7df412a640c8b2334b78ec0ca872a6d11e8b0e (diff) | |
download | emacs-418e5da5d308b4e440f28545eb139211066b48a4.tar.gz |
Correctly handle exposure in oldXMenu
* oldXMenu/Activate.c (XMenuActivate): Call set expose_func if
no pane was found.
(XMenuActivateSetExposeFunction): New function.
* oldXMenu/XMenu.h: New typedef `expose_func'. Update
prototypes.
* src/xmenu.c (x_menu_expose_event): New function.
(x_menu_show): Set expose event handler.
* src/xterm.c (x_dispatch_event): Make `static' only on GTK.
* src/xterm.h: Expose `x_dispatch_event' on no-toolkit builds.
Diffstat (limited to 'oldXMenu/XMenu.h')
-rw-r--r-- | oldXMenu/XMenu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/oldXMenu/XMenu.h b/oldXMenu/XMenu.h index 2eee18a3844..54061235ae7 100644 --- a/oldXMenu/XMenu.h +++ b/oldXMenu/XMenu.h @@ -259,6 +259,7 @@ typedef void (*Wait_func)(void*); XPutBackEvent on an equivalent artificial core event on any function it wants to translate. */ typedef void (*Translate_func)(XEvent *); +typedef void (*Expose_func)(XEvent *); /* * XMenu library routine declarations. @@ -280,6 +281,7 @@ int XMenuLocate(Display *display, XMenu *menu, int p_num, int s_num, int x_pos, void XMenuSetFreeze(XMenu *menu, int freeze); void XMenuActivateSetWaitFunction(Wait_func func, void *data); void XMenuActivateSetTranslateFunction(Translate_func func); +void XMenuActivateSetExposeFunction(Expose_func func); int 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)); char *XMenuPost(Display *display, XMenu *menu, int *p_num, int *s_num, int x_pos, int y_pos, int event_mask); int XMenuDeletePane(Display *display, XMenu *menu, int p_num); |