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 |
|
|
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 |
{ |
{ |
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 |
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); |