/[emacs]/emacs/src/xfns.c
ViewVC logotype

Diff of /emacs/src/xfns.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.535 by eliz, Sun Jan 13 12:17:33 2002 UTC revision 1.536 by jhd, Mon Jan 21 19:23:48 2002 UTC
# Line 880  x_set_frame_parameters (f, alist) Line 880  x_set_frame_parameters (f, alist)
880    int i, p;    int i, p;
881    int left_no_change = 0, top_no_change = 0;    int left_no_change = 0, top_no_change = 0;
882    int icon_left_no_change = 0, icon_top_no_change = 0;    int icon_left_no_change = 0, icon_top_no_change = 0;
883      int fullscreen_is_being_set = 0;
884    
885    struct gcpro gcpro1, gcpro2;    struct gcpro gcpro1, gcpro2;
886    
# Line 944  x_set_frame_parameters (f, alist) Line 945  x_set_frame_parameters (f, alist)
945            register Lisp_Object param_index, old_value;            register Lisp_Object param_index, old_value;
946    
947            old_value = get_frame_param (f, prop);            old_value = get_frame_param (f, prop);
948              fullscreen_is_being_set = EQ (prop, Qfullscreen);
949                        
950            if (NILP (Fequal (val, old_value)))            if (NILP (Fequal (val, old_value)))
951              {              {
# Line 1034  x_set_frame_parameters (f, alist) Line 1036  x_set_frame_parameters (f, alist)
1036          XSETINT (icon_top, 0);          XSETINT (icon_top, 0);
1037      }      }
1038    
1039    if (FRAME_VISIBLE_P (f))    if (FRAME_VISIBLE_P (f) && fullscreen_is_being_set)
1040      {      {
1041        /* If the frame is visible already and the fullscreen parameter is        /* If the frame is visible already and the fullscreen parameter is
1042           being set, it is too late to set WM manager hints to specify           being set, it is too late to set WM manager hints to specify
# Line 1042  x_set_frame_parameters (f, alist) Line 1044  x_set_frame_parameters (f, alist)
1044           Here we first get the width, height and position that applies to           Here we first get the width, height and position that applies to
1045           fullscreen.  We then move the frame to the appropriate           fullscreen.  We then move the frame to the appropriate
1046           position.  Resize of the frame is taken care of in the code after           position.  Resize of the frame is taken care of in the code after
1047           this if-statement.           this if-statement. */
          If fullscreen is not specified, x_fullscreen_adjust returns  
          the current parameters and then x_fullscreen_move does nothing. */  
1048        int new_left, new_top;        int new_left, new_top;
1049                
1050        x_fullscreen_adjust (f, &width, &height, &new_top, &new_left);        x_fullscreen_adjust (f, &width, &height, &new_top, &new_left);

Legend:
Removed from v.1.535  
changed lines
  Added in v.1.536

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26