From: Jan Djärv Date: Tue, 7 Jul 2009 08:38:44 +0000 (+0000) Subject: xterm.c (handle_one_xevent): Only call x_check_fullscreen on the X-Git-Tag: emacs-pretest-23.1.90~2296 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fcaf6f3a784c8da98f1fb377ab2630a956a0c4e7;p=emacs.git xterm.c (handle_one_xevent): Only call x_check_fullscreen on the first MapNotify. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3a57c0a6223..a072f49cb8d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-07-07 Jan Djärv + + * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the + first MapNotify. + 2009-07-07 Kenichi Handa * character.h (unibyte_has_multibyte_table): Delete extern. diff --git a/src/xterm.c b/src/xterm.c index c034faaec2e..8d9a7d3cc0b 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6207,6 +6207,11 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) if (! f->async_iconified) SET_FRAME_GARBAGED (f); + /* Check if fullscreen was specified before we where mapped the + first time, i.e. from the command line. */ + if (!f->output_data.x->has_been_visible) + x_check_fullscreen (f); + f->async_visible = 1; f->async_iconified = 0; f->output_data.x->has_been_visible = 1; @@ -6223,8 +6228,6 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) in case this is the second frame. */ record_asynch_buffer_change (); - /* Check if fullscreen was specified before we where mapped. */ - x_check_fullscreen (f); #ifdef USE_GTK xg_frame_resized (f, -1, -1); #endif