emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xfns.c


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/xfns.c
Date: Mon, 21 Jan 2002 14:23:49 -0500

Index: emacs/src/xfns.c
diff -c emacs/src/xfns.c:1.535 emacs/src/xfns.c:1.536
*** emacs/src/xfns.c:1.535      Sun Jan 13 07:17:33 2002
--- emacs/src/xfns.c    Mon Jan 21 14:23:48 2002
***************
*** 880,885 ****
--- 880,886 ----
    int i, p;
    int left_no_change = 0, top_no_change = 0;
    int icon_left_no_change = 0, icon_top_no_change = 0;
+   int fullscreen_is_being_set = 0;
  
    struct gcpro gcpro1, gcpro2;
  
***************
*** 944,949 ****
--- 945,951 ----
          register Lisp_Object param_index, old_value;
  
          old_value = get_frame_param (f, prop);
+         fullscreen_is_being_set = EQ (prop, Qfullscreen);
          
          if (NILP (Fequal (val, old_value)))
            {
***************
*** 1034,1040 ****
        XSETINT (icon_top, 0);
      }
  
!   if (FRAME_VISIBLE_P (f))
      {
        /* If the frame is visible already and the fullscreen parameter is
           being set, it is too late to set WM manager hints to specify
--- 1036,1042 ----
        XSETINT (icon_top, 0);
      }
  
!   if (FRAME_VISIBLE_P (f) && fullscreen_is_being_set)
      {
        /* If the frame is visible already and the fullscreen parameter is
           being set, it is too late to set WM manager hints to specify
***************
*** 1042,1050 ****
           Here we first get the width, height and position that applies to
           fullscreen.  We then move the frame to the appropriate
           position.  Resize of the frame is taken care of in the code after
!          this if-statement.
!          If fullscreen is not specified, x_fullscreen_adjust returns
!          the current parameters and then x_fullscreen_move does nothing. */
        int new_left, new_top;
        
        x_fullscreen_adjust (f, &width, &height, &new_top, &new_left);
--- 1044,1050 ----
           Here we first get the width, height and position that applies to
           fullscreen.  We then move the frame to the appropriate
           position.  Resize of the frame is taken care of in the code after
!          this if-statement. */
        int new_left, new_top;
        
        x_fullscreen_adjust (f, &width, &height, &new_top, &new_left);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]