summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-02-10 07:13:00 +0000
committerRichard M. Stallman <rms@gnu.org>1996-02-10 07:13:00 +0000
commit14d9500c99d06732f545229089a68052c779e67f (patch)
treed6a9c9fa57adb3e42fcccdecffab98757b23124b /src/window.c
parent09928af273f363da06856b413bea41093148ddea (diff)
downloademacs-14d9500c99d06732f545229089a68052c779e67f.tar.gz
(display_buffer_1): Raise the frame if already visible.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index e010660df46..b380f932009 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1980,9 +1980,13 @@ display_buffer_1 (window)
#ifdef MULTI_FRAME
FRAME_PTR f = XFRAME (WINDOW_FRAME (XWINDOW (window)));
FRAME_SAMPLE_VISIBILITY (f);
- if (FRAME_ICONIFIED_P (f)
- && f != selected_frame)
- Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window)));
+ if (f != selected_frame)
+ {
+ if (FRAME_ICONIFIED_P (f))
+ Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window)));
+ else (FRAME_VISIBLE_P (f))
+ Fraise_frame (WINDOW_FRAME (XWINDOW (window)));
+ }
#endif
return window;
}