diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 07:41:11 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 07:41:11 +0100 |
| commit | 5b5eb5a16969afc4862fac387940818efc26780a (patch) | |
| tree | b33d699e7c0d780d88b015f3f605cebc46258210 /src/wayclock.cc | |
| parent | 0a158275020e94d9395fadaec1db34a1031fe87c (diff) | |
how are we going to do this
Diffstat (limited to 'src/wayclock.cc')
| -rw-r--r-- | src/wayclock.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wayclock.cc b/src/wayclock.cc index 0e39169..ecfb784 100644 --- a/src/wayclock.cc +++ b/src/wayclock.cc @@ -1,10 +1,10 @@ -#include <wayland-client.h> +#include "wlstate.h" int main() { - struct wl_display *disp = wl_display_connect(NULL); - if (!disp) { - return -1; - } - wl_display_disconnect(disp); + wl_state_s state; + if (!wayc_wl_state_init(&state)) + wayc_panic("Failed to initialize Wayland state", nullptr); + + wayc_wl_state_deinit(&state); return 0; }
\ No newline at end of file |
