From 63e44a6be978999ff23b8ba754d8ad3c9fc78969 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 16 Apr 2002 22:48:02 +0000 Subject: Don't popup the display if it's not necessary to do so. --- chess-display.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chess-display.el') diff --git a/chess-display.el b/chess-display.el index 57ea7f5..93dbe8d 100644 --- a/chess-display.el +++ b/chess-display.el @@ -251,7 +251,9 @@ that is supported by most displays, and is the default mode." (defun chess-display-popup (display) "Popup the given DISPLAY, so that it's visible to the user." (chess-with-current-buffer display - (funcall chess-display-event-handler 'popup))) + (unless (eq (get-buffer-window (current-buffer)) + (selected-window)) + (funcall chess-display-event-handler 'popup)))) (defun chess-display-enable-popup (display) "Popup the given DISPLAY, so that it's visible to the user." -- cgit v1.2.3