summaryrefslogtreecommitdiff
path: root/corfu.el
diff options
context:
space:
mode:
Diffstat (limited to 'corfu.el')
-rw-r--r--corfu.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index b5d311c..47a5ad2 100644
--- a/corfu.el
+++ b/corfu.el
@@ -482,7 +482,9 @@ FRAME is the existing frame."
(parent (window-frame)))
(unless (and (frame-live-p frame)
(eq (frame-parent frame)
- (and (not (bound-and-true-p exwm--connection)) parent))
+ (and (not (and (bound-and-true-p exwm--connection)
+ (display-graphic-p parent)))
+ parent))
;; Handle mixed tty/graphical sessions
(eq (display-graphic-p frame)
(display-graphic-p parent))