aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorStefan Monnier2007-10-02 20:43:54 +0000
committerStefan Monnier2007-10-02 20:43:54 +0000
commitde509a6071aa4d046e666860468bb7d8bf134e02 (patch)
tree8f62462bd3b3dfb6d058ebc8a1d0b4f9f5f3c14f /src/window.c
parent766ec949f8ce882abcac06aebe208fc4a39b47a9 (diff)
downloademacs-de509a6071aa4d046e666860468bb7d8bf134e02.tar.gz
emacs-de509a6071aa4d046e666860468bb7d8bf134e02.zip
(candidate_window_p): Only consider as visible frames that
are on the same terminal.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 0bec3948518..ca4c41f5e79 100644
--- a/src/window.c
+++ b/src/window.c
@@ -36,6 +36,7 @@ Boston, MA 02110-1301, USA. */
36#include "dispextern.h" 36#include "dispextern.h"
37#include "blockinput.h" 37#include "blockinput.h"
38#include "intervals.h" 38#include "intervals.h"
39#include "termhooks.h" /* For FRAME_TERMINAL. */
39 40
40#ifdef HAVE_X_WINDOWS 41#ifdef HAVE_X_WINDOWS
41#include "xterm.h" 42#include "xterm.h"
@@ -1794,7 +1795,10 @@ candidate_window_p (window, owindow, minibuf, all_frames)
1794 else if (EQ (all_frames, Qvisible)) 1795 else if (EQ (all_frames, Qvisible))
1795 { 1796 {
1796 FRAME_SAMPLE_VISIBILITY (f); 1797 FRAME_SAMPLE_VISIBILITY (f);
1797 candidate_p = FRAME_VISIBLE_P (f); 1798 candidate_p = FRAME_VISIBLE_P (f)
1799 && (FRAME_TERMINAL (XFRAME (w->frame))
1800 == FRAME_TERMINAL (XFRAME (selected_frame)));
1801
1798 } 1802 }
1799 else if (INTEGERP (all_frames) && XINT (all_frames) == 0) 1803 else if (INTEGERP (all_frames) && XINT (all_frames) == 0)
1800 { 1804 {
@@ -1810,7 +1814,9 @@ candidate_window_p (window, owindow, minibuf, all_frames)
1810 || (FRAME_X_P (f) && f->output_data.x->asked_for_visible 1814 || (FRAME_X_P (f) && f->output_data.x->asked_for_visible
1811 && !f->output_data.x->has_been_visible) 1815 && !f->output_data.x->has_been_visible)
1812#endif 1816#endif
1813 ); 1817 )
1818 && (FRAME_TERMINAL (XFRAME (w->frame))
1819 == FRAME_TERMINAL (XFRAME (selected_frame)));
1814 } 1820 }
1815 else if (WINDOWP (all_frames)) 1821 else if (WINDOWP (all_frames))
1816 candidate_p = (EQ (FRAME_MINIBUF_WINDOW (f), all_frames) 1822 candidate_p = (EQ (FRAME_MINIBUF_WINDOW (f), all_frames)