xglcomp

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