]> git.eshelyaron.com Git - emacs.git/commit
Treat all the wayland connection as the same display
authorYuuki Harano <masm+github@masm11.me>
Thu, 13 May 2021 16:32:53 +0000 (01:32 +0900)
committerYuuki Harano <masm+github@masm11.me>
Thu, 13 May 2021 16:32:53 +0000 (01:32 +0900)
commit9a64cc1468486c7668b329c859b43c728ded123e
treecec1d67f0ea56477cb28821822c7a61a696cc8a4
parentbfd6ab9dc936d16d7b550d878385431077b8c9a7
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.
src/pgtkfns.c