xglcomp
view src/cwin.h @ 1:b2b7cb950c28
window list and compositor registration
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 21 Jan 2016 22:50:10 +0200 |
parents | d9b3fba68705 |
children | 876efea9424c |
line source
1 #ifndef COMP_WIN_H_
2 #define COMP_WIN_H_
4 #include <X11/Xlib.h>
6 struct CompWindow {
7 Window xwin;
8 Pixmap xpixmap;
10 struct CompWindow *next, *prev;
11 };
13 void add_window(CompWindow *cwin);
14 bool delete_window(CompWindow *cwin);
15 bool have_window(CompWindow *cwin);
16 CompWindow *find_window_xid(Window xid);
17 CompWindow *find_window_pixmap(Pixmap pix);
19 int get_window_count();
20 CompWindow *get_window(int idx);
22 #endif // COMP_WIN_H_