diff options
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 |
