diff options
| author | Yuuki Harano | 2021-05-14 01:32:53 +0900 |
|---|---|---|
| committer | Yuuki Harano | 2021-05-14 01:32:53 +0900 |
| commit | 9a64cc1468486c7668b329c859b43c728ded123e (patch) | |
| tree | cec1d67f0ea56477cb28821822c7a61a696cc8a4 /src/coding.c | |
| parent | bfd6ab9dc936d16d7b550d878385431077b8c9a7 (diff) | |
| download | emacs-9a64cc1468486c7668b329c859b43c728ded123e.tar.gz emacs-9a64cc1468486c7668b329c859b43c728ded123e.zip | |
Treat all the wayland connection as the same display
On Wayland,
even if without WAYLAND_DISPLAY, --display DISPLAY works, but
gdk_display_get_name() always return "wayland-0", which may be
different from DISPLAY.
If with WAYLAND_DISPLAY, then it always returns WAYLAND_DISPLAY.
So pgtk emacs is confused and enter multi display environment.
To workaround this situation, treat all the wayland-* as the same
display.
* src/pgtkfns.c (is_wayland_display): New function to decide it is a
wayland connection.
(pgtk_display_info_for_name): If both are wayland connection, then
they are the same display.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions