xglcomp
diff src/cwin.cc @ 0:d9b3fba68705
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 21 Jan 2016 08:45:31 +0200 |
parents | |
children | b2b7cb950c28 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/cwin.cc Thu Jan 21 08:45:31 2016 +0200 1.3 @@ -0,0 +1,17 @@ 1.4 +#include <vector> 1.5 +#include "cwin.h" 1.6 +#include "logger.h" 1.7 + 1.8 +static std::vector<CompWindow> cwinlist; 1.9 + 1.10 +void add_window(CompWindow *cwin) 1.11 +{ 1.12 + if(have_window(cwin)) { 1.13 + log_warning("add_window trying to add duplicate, ignoring\n"); 1.14 + return; 1.15 + } 1.16 + 1.17 + cwinlist.push_back(cwin); 1.18 +} 1.19 + 1.20 +void delete_window(