My omnium-gatherom of scripts and source code.
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]] Span<const StringView> args) -> I32
20{
21 LLauncher::startDaemon();
22
23 var compositor = WCompositor();
24
25 if (not compositor.start()) {
26 LLog::fatal("[louvre-example] Failed to start compositor.");
27 return 1;
28 }
29
30 while (compositor.state() != LCompositor::Uninitialized)
31 compositor.processLoop(-1);
32
33 return 0;
34}