diff options
| -rw-r--r-- | chess-display.el | 4 |
1 files changed, 3 insertions, 1 deletions
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." |
