From b5e9f58db6765639f3c056f9f39ec6bdf8a9b4a5 Mon Sep 17 00:00:00 2001 From: declantsien <51986034+declantsien@users.noreply.github.com> Date: Fri, 28 Oct 2022 11:13:32 -0600 Subject: [PATCH] fix(org): check WAYLAND_DISPLAY for bin/org-capture Check WAYLAND_DISPLAY for +org-capture-frame-parameters. PGTK emacsclient also uses this logic. Ref: masm11/emacs#13 --- modules/lang/org/autoload/org-capture.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/autoload/org-capture.el b/modules/lang/org/autoload/org-capture.el index c6b00a11a..ed67ac1d6 100644 --- a/modules/lang/org/autoload/org-capture.el +++ b/modules/lang/org/autoload/org-capture.el @@ -17,7 +17,9 @@ (transient . t) ,@(when IS-LINUX `((window-system . ,(if (boundp 'pgtk-initialized) 'pgtk 'x)) - (display . ,(or (getenv "DISPLAY") ":0")))) + (display . ,(or (getenv "WAYLAND_DISPLAY") + (getenv "DISPLAY") + ":0")))) ,(if IS-MAC '(menu-bar-lines . 1))) "TODO")