xglcomp
annotate 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 |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef COMP_WIN_H_ |
nuclear@0 | 2 #define COMP_WIN_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include <X11/Xlib.h> |
nuclear@0 | 5 |
nuclear@0 | 6 struct CompWindow { |
nuclear@0 | 7 Window xwin; |
nuclear@0 | 8 Pixmap xpixmap; |
nuclear@0 | 9 |
nuclear@0 | 10 struct CompWindow *next, *prev; |
nuclear@0 | 11 }; |
nuclear@0 | 12 |
nuclear@0 | 13 void add_window(CompWindow *cwin); |
nuclear@1 | 14 bool delete_window(CompWindow *cwin); |
nuclear@0 | 15 bool have_window(CompWindow *cwin); |
nuclear@0 | 16 CompWindow *find_window_xid(Window xid); |
nuclear@1 | 17 CompWindow *find_window_pixmap(Pixmap pix); |
nuclear@0 | 18 |
nuclear@0 | 19 int get_window_count(); |
nuclear@0 | 20 CompWindow *get_window(int idx); |
nuclear@0 | 21 |
nuclear@0 | 22 #endif // COMP_WIN_H_ |