xglcomp

view 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 source
1 #include <vector>
2 #include "cwin.h"
3 #include "logger.h"
5 static std::vector<CompWindow> cwinlist;
7 void add_window(CompWindow *cwin)
8 {
9 if(have_window(cwin)) {
10 log_warning("add_window trying to add duplicate, ignoring\n");
11 return;
12 }
14 cwinlist.push_back(cwin);
15 }
17 void delete_window(