Architecture / Modularization
Architecture / Modularization
Posted Jan 28, 2026 18:25 UTC (Wed) by pizza (subscriber, #46)In reply to: Architecture / Modularization by Wol
Parent article: Xfwl4: the roadmap for a Xfce Wayland compositor
Except for the minor detail where the the sets of state needed for both situations are different.
* "restoring after a new startup" requires a list of applications (including command line used to launch things) and the state consists of application X instance Y window Z ==> position/size" (and almost nothing else). And of course the applications themselves need to be able to pick up where they left off, which may or may not be technically feasible or desireable. [1]
* "compositor crashed" requires is "existing connection/socket/etc ==> [a large amount of runtime compositor state]" which will necessarily require a lot more than position/size because the already-running application itself has to seamlessly recover. Notably absent is any need to know how to re-launch these applications [2]
[1] I don't need dozens of empty xterms started up for me, for example.
[2] Worth noting that the compositor probably does not even know how the application was launched (ie executable name/path/cmdline), as its first interaction with the application was when said application initiates a connection to the compositor.
