Wayland compositor in around 500 lines of annotated C

Dev tools

wayland compositor

SHOW HN2018

332points
122comments
#66of 2,155 in 2018
Top 4%of 2018 by points

How HN took it

CuriousMostly questions and neutral comments

9 positive, 55 neutral or asking, 1 mixed, 17 critical, out of 82 comments about the project. Thread score -0.05.

Execution: 0 for, 7 againstIdea: 3 for, 3 againstDesign: 1 for, 5 againstDocs: 3 for, 0 againstPrivacy: 0 for, 2 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Well-commented code that is useful for learning Wayland

    From 3 comments
    • This code is so well-commented that it makes me want to do some graphics programming – and I haven’t needed to do any graphics programming other than HTML canvas in 30 years.…
      tomcam on HN
    • This is very valuable educationally! Thanks! A slightly less minimal, but still small — 2000 lines total among all files — DE, leveraging Mir†, rather than wlroots, is here:…
      gnomewascool on HN
    • you actually went and did it! not that I doubted it ;) thanks, your contributions to the community are invaluable! this looks like a pretty awesome way to learn wayland :)
      amarant on HN
  • Clear educational value

    From 1 comment
    • This is very valuable educationally! Thanks! A slightly less minimal, but still small — 2000 lines total among all files — DE, leveraging Mir†, rather than wlroots, is here:…
      gnomewascool on HN

Objections

  • Relies on wlroots, so the line count is misleading

    From 2 comments
    • Please note that it is not written from scratch and is using a wlroots library that does most of the job. Most of the code are just the handlers for events emitted by the…
      codedokode on HN
    • Without wlroots it would need several times more loc.
      aleksis on HN
  • Wayland's design limits desktop customization and window managers

    From 2 comments
    • If Wayland is the "Linux desktop" then all the advantages are gone. You do know that Wayland's design effectively destroys any choice and customization right? Wayland's protocol…
      chris111 on HN
    • I haven't really followed Wayland very closely but as a huge fan of tiling WMs (I've used StumpWM for more than a decade, although I switched to dwm lately) I've been a bit…
      simias on HN
  • Client-side window decorations are poorly thought out

    From 2 comments
    • > if I had read the compositor source code before posing the question, I'd have known that the client merely provides the window decoration as a visual area, but not its…
      eadmund on HN
    • No, it's definitely poorly thought out. This is one of the problems that we're trying to deal with over in the wlroots camp.
      Sir_Cmpwn on HN

Requests

  • Standard protocol for screenshots and screen capture with permissions

    From 2 comments
    • How does that work securely? What determines if a process can take a screenshot or not? I mean clearly (I hope) only the compositor has access to all the pixels and needs to…
      phkahler on HN
    • >What determines if a process can take a screenshot or not We're slowly working on standardizing means of granting third-party software access to these protocols, but a…
      Sir_Cmpwn on HN
  • Remote desktop (RDP) support on Wayland

    From 1 comment
    • Been hoping Wayland would help improve the sad state of remote desktop on Linux but from what I can see I'll have to way another 5+ years for something useful :( I've installed…
      magicalhippo on HN

Questions

  • How to use this on Arch Linux

    From 1 comment
  • How compositor handles errors and crashes

    From 1 comment
    • My question would be: given that current Wayland implementation kills all my windows when an error happens, in contrast with X11 where the session is killed but the windows are…
      Shorel on HN
  • Whether tiling window managers work on Wayland

    From 1 comment
    • I haven't really followed Wayland very closely but as a huge fan of tiling WMs (I've used StumpWM for more than a decade, although I switched to dwm lately) I've been a bit…
      simias on HN

Alternatives named

  • Weston reference compositor

    From 2 comments
    • so this is like a simple weston?
      billconan on HN
    • Kind of. Weston is a reference compositor, it exists to demonstrate the features of wayland.xml and act as a testbed for Wayland development. These days though I think people are…
      Sir_Cmpwn on HN
  • Mir with egmde

    From 1 comment
    • This is very valuable educationally! Thanks! A slightly less minimal, but still small — 2000 lines total among all files — DE, leveraging Mir†, rather than wlroots, is here:…
      gnomewascool on HN
  • GNOME compositor

    From 1 comment
    • > I thought the wayland compositor would implement some desktop environment functionality. In other words the compositor itself would also define the DE by starting a panel and…
      Sir_Cmpwn on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/17773982)