How dreammaomao/mangowc works
Project type and purpose
• Mango is a Wayland compositor (window manager) written in C, built on top of the wlroots library.
• Its purpose is to take client windows (Wayland and XWayland), manage their lifecycle, layout, animations, and effects, and render them to the screen while providing a configurable IPC interface.
File structure
• Top-level: build scripts and configs (meson.build, flake.nix, config.conf), assets, licenses, CI workflows.
• src/: core code organized by feature:
• animation/ – window and tag animations
• client/ – client (window) abstraction
• config/ – parsing and presets
• common/ – utilities
• data/ – static keymaps
• dispatch/ – binding declarations and handling input -> actions
• ext-protocol/ – custom Wayland protocol extensions (IPC, workspace, layer, text-input)
• fetch/ – retrieving monitor and input info
• layout/ – window placement algorithms (tile, monocle, grid, etc.)
• mango.c – main entry point, global initialization
• mmsg/: small message-passing library, used for internal and external IPC.
• protocols/: XML descriptions of Wayland extensions.
Key insights from the README
• Mango provides window management, animations, tags (workspaces), input method support, IPC, and effects via scenefx.
• Dependencies: wlroots, libinput, libxkbcommon, pixman, scenefx, seatd, etc.
• External configuration and IPC hooks.