mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-18 10:16:51 +00:00
*** empty log message ***
This commit is contained in:
parent
8b806a8574
commit
bf3382455d
@ -1,3 +1,22 @@
|
||||
2003-01-08 Jan D. <jan.h.d@swipnet.se>
|
||||
|
||||
* xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
|
||||
instead of XtAppProcessEvent.
|
||||
|
||||
* xterm.c (handle_one_xevent): New function
|
||||
(x_dispatch_event): New function
|
||||
(XTread_socket): Call handle_one_xevent.
|
||||
|
||||
* xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): Added
|
||||
|
||||
* xmenu.c (Fx_popup_menu): If popping up at mouse position,
|
||||
call XQueryPointer to get coordinates.
|
||||
(popup_get_selection): Do not set popup_activated_flag to zero,
|
||||
let popup_deactivate_callback do that. Needed for Motif.
|
||||
Call x_dispatch_event instead of XtDispatchEvent.
|
||||
(xmenu_show): Calculate root coordinate from frame top/left position.
|
||||
|
||||
|
||||
2003-01-08 Kim F. Storm <storm@cua.dk>
|
||||
|
||||
* process.c (server_accept_connection): Fixed recording of new
|
||||
|
12
src/xfns.c
12
src/xfns.c
@ -11649,18 +11649,14 @@ selection dialog's entry field, if MUSTMATCH is non-nil. */)
|
||||
XmListSetPos (list, item_pos);
|
||||
}
|
||||
|
||||
/* Process events until the user presses Cancel or OK. Block
|
||||
and unblock input here so that we get a chance of processing
|
||||
expose events. */
|
||||
UNBLOCK_INPUT;
|
||||
/* Process events until the user presses Cancel or OK. */
|
||||
result = 0;
|
||||
while (result == 0)
|
||||
{
|
||||
BLOCK_INPUT;
|
||||
XtAppProcessEvent (Xt_app_con, XtIMAll);
|
||||
UNBLOCK_INPUT;
|
||||
XEvent event;
|
||||
XtAppNextEvent (Xt_app_con, &event);
|
||||
x_dispatch_event (&event, FRAME_X_DISPLAY (f) );
|
||||
}
|
||||
BLOCK_INPUT;
|
||||
|
||||
/* Get the result. */
|
||||
if (result == XmCR_OK)
|
||||
|
2530
src/xterm.c
2530
src/xterm.c
File diff suppressed because it is too large
Load Diff
13
src/xterm.h
13
src/xterm.h
@ -619,7 +619,7 @@ enum
|
||||
enum
|
||||
{
|
||||
/* Values for focus_state, used as bit mask.
|
||||
EXPLICIT means if we received a FocusIn for the frame and know it has
|
||||
EXPLICIT means we received a FocusIn for the frame and know it has
|
||||
the focus. IMPLICIT means we recevied an EnterNotify and the frame
|
||||
may have the focus if no window manager is running.
|
||||
FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */
|
||||
@ -674,6 +674,16 @@ enum
|
||||
#define PIXEL_WIDTH(f) ((f)->output_data.x->pixel_width)
|
||||
#define PIXEL_HEIGHT(f) ((f)->output_data.x->pixel_height)
|
||||
|
||||
/* The difference in pixels between the top left corner of the
|
||||
Emacs window (including possible window manager decorations)
|
||||
and FRAME_X_WINDOW (f). */
|
||||
#define FRAME_OUTER_TO_INNER_DIFF_X(f) \
|
||||
((f)->output_data.x->x_pixels_outer_diff)
|
||||
#define FRAME_OUTER_TO_INNER_DIFF_Y(f) \
|
||||
((f)->output_data.x->y_pixels_outer_diff \
|
||||
+ (f)->output_data.x->menubar_height)
|
||||
|
||||
|
||||
#define FRAME_XIC(f) ((f)->output_data.x->xic)
|
||||
#define FRAME_X_XIM(f) (FRAME_X_DISPLAY_INFO (f)->xim)
|
||||
#define FRAME_X_XIM_STYLES(f) (FRAME_X_DISPLAY_INFO (f)->xim_styles)
|
||||
@ -1029,6 +1039,7 @@ extern void x_clear_area P_ ((Display *, Window, int, int, int, int, int));
|
||||
extern void x_fullscreen_adjust P_ ((struct frame *f, int *, int *,
|
||||
int *, int *));
|
||||
|
||||
extern void x_dispatch_event P_ ((XEvent *, Display *));
|
||||
|
||||
/* Defined in xselect.c */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user