Re: Monitor attributes on Windows 11/WSL2
Johan Myréen <[email protected]> Sat, 1 Aug 2026 16:15:19 +0300
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <CA+TD5hgByro0+roP1wZwopXUnsdMYfhCXeoB4Bh8_UWg7MOYdw@mail.gmail.com> |
--00000000000062dfc10657fc1936 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Den l=C3=B6r 1 aug. 2026 15.12martin rudalics <[email protected]> skrev: > > around line 6991 of xfns.c since the source reported by the OP is Gdk > (source . "Gdk"). But maybe xrandr can do better (unless the user is on > Wayland). > As far as I understand, WSL2 uses a Wayland compositor (Weston) that renders to an RDP backend. Unless the app is a native Wayland app (PGTK Emacs), the XWayland compatibility layer is used on top of of Weston. XRandR is not involved. See: https://wsl-ui.octasoft.co.uk/blog/wsl2-gui-part1-wslg --00000000000062dfc10657fc1936 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote gmail_quote_contai= ner"><div dir=3D"ltr" class=3D"gmail_attr">Den l=C3=B6r 1 aug. 2026 15.12ma= rtin rudalics <<a href=3D"mailto:[email protected]">[email protected]</a>>= ; skrev:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .= 8ex;border-left:1px #ccc solid;padding-left:1ex">=C2=A0<br> around line 6991 of xfns.c since the source reported by the OP is Gdk<br> (source . "Gdk").=C2=A0 But maybe xrandr can do better (unless th= e user is on<br> Wayland).<br></blockquote></div></div><div dir=3D"auto"><br></div><div dir= =3D"auto">As far as I understand, WSL2 uses a Wayland compositor (Weston) t= hat renders to an RDP backend. Unless the app is a native Wayland app (PGTK= Emacs), the XWayland compatibility layer is used on top of of Weston. XRan= dR is not involved.</div><div dir=3D"auto"><br></div><div dir=3D"auto">See:= <a href=3D"https://wsl-ui.octasoft.co.uk/blog/wsl2-gui-part1-wslg">https:/= /wsl-ui.octasoft.co.uk/blog/wsl2-gui-part1-wslg</a></div><div dir=3D"auto">= <br></div></div> --00000000000062dfc10657fc1936--