diff options
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/emacsclient.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 0e800dd7e89..1f3e72f81db 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -605,7 +605,12 @@ decode_options (int argc, char **argv) alt_display = "w32"; #endif +#ifdef HAVE_PGTK + display = egetenv ("WAYLAND_DISPLAY"); + alt_display = egetenv ("DISPLAY"); +#else display = egetenv ("DISPLAY"); +#endif } if (!display) |