This is Part 4 of Treeland: Evolution in Progress. Part 1 described perceptible upgrades: improved window behaviour, natural gestures and refined multitasking animations. Part 2 covered application compatibility for games, 3D software and X11 / Wine programs. Part 3 addressed less-visible stability enhancements. Over recent months Treeland has resolved crash-inducing defects, strengthening multi-monitor handling, input focus, Alt+Tab and file drag-and-drop reliability. Collectively these deliver a more usable and stable Treeland.

Several fundamental questions remain unanswered: how do these improvements materialize? How can Treeland continuously gain new desktop capabilities and resolve defects?

The answers lie deep within invisible technical foundations. This article explores ongoing evolution in Treeland's underlying architecture.

Treeland is a display server developed by the deepin community based on the Wayland protocol. It uses wlroots as its foundational Wayland library without modifying the wlroots source code. This enables it to synchronize with upstream progress at any time and receive new features and bug fixes. Qt is used at the upper layer, which leverages the large existing pool of Qt developers. No dedicated full-time staff is required for individual projects, unifying the technical stack of DDE.

01 | Why Treeland Must Keep Pace with Wayland Upstream

Wayland for Linux desktops evolves continuously. New protocols, features and application requirements keep emerging. As a Wayland-based desktop, Treeland must track upstream ecosystem shifts to adopt new capabilities and adapt to changing application demands.

Draw an analogy to an expanding city: windows, animations and gestures correspond to visible roads and buildings; Wayland and wlroots represent critical urban infrastructure. User-facing features evolve, yet underlying infrastructure must also receive ongoing investment.

Keeping pace with Wayland upstream delivers more than isolated new features today. It ensures future features, protocols and application compatibility work builds upon healthy foundations.

02 | The Historical Role of qwlroots

qwlroots played an important early role for Treeland. It accelerated initial desktop capability development and enabled technical exploration during the project's infancy.

Nevertheless, as Treeland matured, discrepancies between intermediate-layer abstractions and upstream components introduced growing maintenance overhead. Developers needed to continuously reconcile local modifications against upstream updates and adapt intermediate-layer interfaces for upstream changes.

While sustainable in short-term exploratory phases, long-term growth required a strategy for more direct alignment with upstream wlroots. The chosen path is gradual removal of intermediate dependencies to bring Treeland closer to vanilla wlroots.

03 | Rationale for Removing the qwlroots Dependency

Removing qwlroots entails far more than deleting a dependency entry. It establishes a cleaner, more direct connection between Treeland and the upstream ecosystem.

Although intermediate layers accelerated early development, direct upstream alignment in a mature project yields cleaner code architecture and reduced long-term maintenance burden.

Eliminating qwlroots brings concrete benefits: fewer intermediate-layer adaptations when wlroots receives updates, improved code readability for developers, and simplified future evolution. New Wayland protocols, compatibility improvements and desktop features can build atop streamlined foundations.

04 | What Aligning with wlroots 0.20 Means

A major accompanying technical adjustment is Treeland's ongoing alignment with wlroots 0.20.

This alignment synchronizes Treeland's development rhythm with the broader Wayland upstream ecosystem. Adaptation costs drop for developers implementing new interfaces, protocols and functionality. Treeland gains a healthier technical base for upcoming application-driven requirements and desktop-feature work.

This upgrade recalibrates Treeland's underlying technical coordinates: clarifying heritage, aligning with the upstream direction, and opening expanded possibilities for future development.

05 | Invisible Refactoring Prepares for the Future

Beyond dropping qwlroots and targeting wlroots 0.20, internal rework includes code refactoring, removal of redundant interfaces and expanded automated testing.

Cleaner code and pruned redundant interfaces restrain project complexity and simplify ongoing development. Automated testing catches regressions early and mitigates risks introduced by code changes. These deliver no direct user-visible features, yet strengthen Treeland's engineering fundamentals. Engineering resources are invested in behind-the-scene work: cleaner code, simplified dependencies, tighter upstream alignment and improved future development velocity.

Closing Thoughts

Recent Treeland improvements span both user-visible functionality and deep internal rework. These four articles represent only a snapshot of ongoing development. The team keeps prioritizing real-world user concerns. The goal is making Treeland better-performing today while laying groundwork for its long-term future.

If you use Treeland, share your experiences and suggestions with us. What would you like Treeland to become next? Share your feedback on the deepin Forum.