Wayland cOMPositor written in C++ using Louvre.
1/* ========================================================================
2 *
3 * Filename: main.cpp
4 * Description: W Compositor entry point
5 * GitHub Repo: https://github.com/diego-est/womp
6 * Author: Diego A. Estrada Rivera
7 * License: GPL-3.0
8 * Version: 0.4.2
9 *
10 * ======================================================================== */
11#include "WCompositor.hpp"
12#include "prelude.hpp"
13#include <LCompositor.h>
14#include <LLauncher.h>
15#include <LLog.h>
16
17using namespace Louvre;
18
19proc Main([[maybe_unused]] std::span<const std::string_view> args) noexcept
20 -> I32
21{
22 LLauncher::startDaemon();
23
24 var compositor = WCompositor();
25
26 if (!compositor.start()) {
27 LLog::fatal("[louvre-example] Failed to start compositor.");
28 return 1;
29 }
30
31 while (compositor.state() != LCompositor::Uninitialized)
32 compositor.processLoop(-1);
33
34 return 0;
35}