aboutsummaryrefslogtreecommitdiff
path: root/src/compositor.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-01-11 22:12:00 +0100
committerdec05eba <dec05eba@protonmail.com>2024-01-11 22:12:00 +0100
commitfb9f6797869281b1eb4f950a9b791b561e27fdd9 (patch)
treed984be918f38d48d8b0f095eccbb98b34ff294a2 /src/compositor.h
parentefee05461adf85f9d2730a008c757387364deb54 (diff)
Circulate window, not perfect yet
Diffstat (limited to 'src/compositor.h')
-rw-r--r--src/compositor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compositor.h b/src/compositor.h
index 3d8d876..9fe647e 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -6,8 +6,10 @@
// TODO: Make dynamic
#define NGXC_COMPOSITOR_MAX_WINDOWS 100
+/* TODO: Add window index inside this struct, to know how to move this inside |ngxc_compositor.windows| */
typedef struct {
WindowTexture texture;
+ Window above_window;
int x;
int y;
} ngxc_window;
@@ -23,9 +25,10 @@ typedef struct {
void ngxc_compositor_init(ngxc_compositor *self, Display *dpy, Window composite_window);
void ngxc_compositor_deinit(ngxc_compositor *self);
-void ngxc_compositor_add_window(ngxc_compositor *self, Window window);
+void ngxc_compositor_add_window(ngxc_compositor *self, Window window, Window above_window);
void ngxc_compositor_remove_window(ngxc_compositor *self, Window window);
void ngxc_compositor_render(ngxc_compositor *self);
void ngxc_compositor_on_configure(ngxc_compositor *self, const XConfigureEvent *configure_event);
+void ngxc_compositor_on_circulate(ngxc_compositor *self, const XCirculateEvent *circulate_event);
#endif /* NGXC_COMPOSITOR_H */