HNNewShowAskJobs
Built with Tanstack Start
The input stack on Linux: An end-to-end architecture overview(venam.net)
85 points by venamresm__ 5 hours ago | 5 comments
  • charcircuit3 hours ago

    How is how inputs gets routed to the right window out of scope for an article that wants to describe input end to end? The fact that input events get carefully routed to the right thing is both important and a potential source of bugs if not implemented correctly.

    • venamresm__2 hours ago |parent

      > How is how inputs gets routed to the right window

      It is covered for both X11 and Wayland. I just don't get into the particular decisions and details of how each WM/DE picks what they deem the current focused window, since it varies widely and it's more part of window management than of input management (I've written a WM and it's a bit messy). An article on WM/Compositor development would be more appropriate for that, I have a few already on my blog.

    • Aurornis2 hours ago |parent

      That’s the domain of a window manager. It’s touched on in the article, but going into detail about the edge cases would require detours into user space window manager choices and even preference settings.

      • charcircuit4 minutes ago |parent

        I'm not even talking about edge cases. It doesn't even give a high level. It just treats wayland and x as big black boxes and does not explain what happens inside of them.

  • rbancroftan hour ago

    Very impressive, nice work!