Mercurial > emacs
annotate oldXMenu/README @ 105693:964ff7cbc8a6
Fix resize due to font change on a maximized/xmonad-controlled frame.
* xterm.h (x_wait_for_event): Declare it.
* xterm.c (pending_event_wait): New variable.
(handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
see pending_event_wait.eventtype.
(handle_one_xevent): Don't change gravity when parent changes.
(x_new_font): Call change_frame_size with new rows/columns before we try
to resize the frame.
(x_wait_for_event): New function.
(x_set_window_size_1): Don't change gravity unless change_gravity is set.
Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
don't change frame size, instead wait for the ConfigureNotify.
(x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
(x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
(x_initialize): Initialize pending_event_wait.
* xmenu.c (set_frame_menubar): Add internal border width to menu bar
size.
* widget.c (EmacsFrameSetValues): Add comment.
(EmacsFrameSetCharSize): Just call x_set_window_size.
* gtkutil.c (xg_frame_set_char_size): Flush events and call
x_wait_for_event.
(flush_and_sync): Removed again.
(xg_get_font_name): Suggest monospace if no previous font is known.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Wed, 21 Oct 2009 18:29:46 +0000 |
parents | b6efdc75a68e |
children |
rev | line source |
---|---|
76134 | 1 Most of the files in this directory are originally from the X11R2 |
76185 | 2 XMenu library, distributed by MIT under the terms in the file copyright.h. |
25858 | 3 |
4 As of Release 2 of the X Window System, Version 11 from MIT, the XMenu | |
76134 | 5 library is no longer supported. It is not used in any software |
6 supplied by MIT and its use is not encouraged. | |
7 | |
8 In X11R1, oldXMenu/ was found in the lib/ directory of the X11 source; | |
9 but in X11R2 it was moved to contrib/. | |
10 | |
11 The following files are from the X11 oldXMenu/ directory: | |
25858 | 12 |
76134 | 13 Activate.c AddPane.c AddSel.c ChgPane.c ChgSel.c Create.c DelPane.c |
14 DelSel.c Destroy.c Error.c EvHand.c FindPane.c FindSel.c InsPane.c | |
15 InsSel.c Internal.c Locate.c Post.c Recomp.c SetAEQ.c SetFrz.c | |
16 SetPane.c SetSel.c XMenu.h XMenuInt.h (renamed from "XMenuInternal.h") | |
17 | |
18 The following files are from the X11 oldX/ directory: | |
19 | |
20 X10.h XCrAssoc.c XDelAssoc.c XDestAssoc.c XLookAssoc.c XMakeAssoc.c | |
21 | |
22 This code is used by Emacs in the absence of an X-toolkit. |