Repository navigation
61e05a7
Pre-releasefeat(display): selkies resize on Wayland, and one start size for both backends
selkies resize sized an X server and printed None on Wayland, where the
screen is the server's own compositor. A Wayland server now answers it on
a socket in the runtime directory named for its Wayland socket
(selkies-display-), of mode 0600, closing a peer of another uid
unanswered. It takes resize WxH and sizes the primary's screen, refusing
a size that would cover another display's output or leave a streamed view
outside the screen. The command asks the socket its WAYLAND_DISPLAY names,
so servers sharing a runtime directory each answer for their own screen,
and resizes an X server itself where none answers; once a server took the
request, its answer stands.
The compositor's screen started at 1024x768 until a client sized it, where
an X11 session's starts at the manual resolution or 1920x1080, so an
application started before a client connected met a different screen on
each backend. Both now read one rule (session::start_size); a capture of
a host compositor keeps its sizing.