From c4fb95cf0025b34ca14c22f4fbbfcef14d56d71c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 11 Jan 2024 22:56:34 +0100 Subject: Proper draw order --- src/compositor.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/compositor.h') diff --git a/src/compositor.h b/src/compositor.h index 9fe647e..cf520d5 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -6,10 +6,8 @@ // 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; @@ -25,7 +23,7 @@ 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, Window above_window); +void ngxc_compositor_add_window(ngxc_compositor *self, Window 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); -- cgit v1.2.3