Mercurial > hg > xemacs-beta
diff src/event-Xt.c @ 5178:97eb4942aec8
merge
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Mon, 29 Mar 2010 21:28:13 -0500 |
parents | 8b2f75cecb89 a48ef26d87ee |
children | 71ee43b8a74d |
line wrap: on
line diff
--- a/src/event-Xt.c Tue Feb 23 07:28:35 2010 -0600 +++ b/src/event-Xt.c Mon Mar 29 21:28:13 2010 -0500 @@ -2,6 +2,7 @@ Copyright (C) 1991-5, 1997 Free Software Foundation, Inc. Copyright (C) 1995 Sun Microsystems, Inc. Copyright (C) 1996, 2001, 2002, 2003, 2010 Ben Wing. + Copyright (C) 2010 Didier Verna This file is part of XEmacs. @@ -133,8 +134,6 @@ static int last_quit_check_signal_tick_count; -Lisp_Object Qsans_modifiers; - #define THIS_IS_X #include "event-xlike-inc.c" @@ -1898,6 +1897,25 @@ break; case ConfigureNotify: + { + XEvent xev; + + /* Let's eat all events of that type to avoid useless + reconfigurations. */ + while (XCheckTypedWindowEvent + (DEVICE_X_DISPLAY (XDEVICE (FRAME_DEVICE (f))), + XtWindow (FRAME_X_TEXT_WIDGET (f)), + ConfigureNotify, + &xev) + == True); + } + /* #### NOTE: in fact, the frame faces didn't really change, but if some + #### of them have their background-placement property set to + #### absolute, we need a redraw. This is semantically equivalent to + #### changing the background pixmap. -- dvl */ + x_get_frame_text_position (f); + MARK_FRAME_FACES_CHANGED (f); + #ifdef HAVE_XIM XIM_SetGeometry (f); #endif @@ -3024,8 +3042,6 @@ void syms_of_event_Xt (void) { - DEFSYMBOL (Qsans_modifiers); - DEFSYMBOL (Qself_insert_command); } void