aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1994-04-13 18:14:44 +0000
committerKarl Heuer <[email protected]>1994-04-13 18:14:44 +0000
commit217f28719edf08ba2e15349713df7c9f8ab871fb (patch)
tree82633217155dbb060f43fe00cf2637bd733750f7 /src/window.c
parentc6e7309356e0306d6adff0a95684a5c004365b67 (diff)
(Fset_window_configuration): Only call X fns if HAVE_X_WINDOWS.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index ccb8135752..9515c1ca08 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2591,9 +2591,11 @@ by `current-window-configuration' (which see).")
if (XFASTINT (data->frame_height) != previous_frame_height
|| XFASTINT (data->frame_width) != previous_frame_width)
change_frame_size (f, data->frame_height, data->frame_width, 0, 0);
+#ifdef HAVE_X_WINDOWS
if (XFASTINT (data->frame_menu_bar_lines)
!= previous_frame_menu_bar_lines)
x_set_menu_bar_lines (f, data->frame_menu_bar_lines, 0);
+#endif
windows_or_buffers_changed++;
@@ -2731,8 +2733,10 @@ by `current-window-configuration' (which see).")
|| previous_frame_width != FRAME_WIDTH (f))
change_frame_size (f, previous_frame_height, previous_frame_width,
0, 0);
+#ifdef HAVE_X_WINDOWS
if (previous_frame_menu_bar_lines != FRAME_MENU_BAR_LINES (f))
x_set_menu_bar_lines (f, previous_frame_menu_bar_lines, 0);
+#endif
}
#ifdef MULTI_FRAME