changeset 103746:143908a11f1f

xterm.c (handle_one_xevent): Only call x_check_fullscreen on the first MapNotify.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 07 Jul 2009 08:38:44 +0000
parents aa8c2eb03e10
children 4f648d5b56cd
files src/ChangeLog src/xterm.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Jul 07 06:28:54 2009 +0000
+++ b/src/ChangeLog	Tue Jul 07 08:38:44 2009 +0000
@@ -1,3 +1,8 @@
+2009-07-07  Jan Djärv  <jan.h.d@swipnet.se>
+
+	* xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
+	first MapNotify.
+
 2009-07-07  Kenichi Handa  <handa@m17n.org>
 
 	* character.h (unibyte_has_multibyte_table): Delete extern.
--- a/src/xterm.c	Tue Jul 07 06:28:54 2009 +0000
+++ b/src/xterm.c	Tue Jul 07 08:38:44 2009 +0000
@@ -6207,6 +6207,11 @@
           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 @@
                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