diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:37:26 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 10:37:26 +0100 |
| commit | b4f74dc349f024ed44d4228501d500ebb113d146 (patch) | |
| tree | 394ce06cbc10d7163f8974fb70fbc272d0e3a14d /src | |
| parent | 0dc0a32c0002490319f0cc641de739824ea22461 (diff) | |
working on window
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.cc | 2 | ||||
| -rw-r--r-- | src/window.h | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/window.cc b/src/window.cc new file mode 100644 index 0000000..32055b1 --- /dev/null +++ b/src/window.cc @@ -0,0 +1,2 @@ +#include "window.h" + diff --git a/src/window.h b/src/window.h index 38a61c0..88be5f0 100644 --- a/src/window.h +++ b/src/window.h @@ -2,6 +2,14 @@ #include "utils.h" +struct eventloop_s; typedef u32 window_id_t; -struct window_s {};
\ No newline at end of file +struct window_s { + wl_surface_t surface; + xdg_surface_t xdg_surface; + xdg_toplevel_t xdg_toplevel; +}; + +bool wayc_window_init(struct window_s *window, struct eventloop_s *loop); +void wayc_window_deinit(struct window_s *window); |
