xglcomp
diff src/cwin.cc @ 2:876efea9424c
OpenGL
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 22 Jan 2016 06:31:03 +0200 |
parents | b2b7cb950c28 |
children | e831d38e6faa |
line diff
1.1 --- a/src/cwin.cc Thu Jan 21 22:50:10 2016 +0200 1.2 +++ b/src/cwin.cc Fri Jan 22 06:31:03 2016 +0200 1.3 @@ -5,6 +5,12 @@ 1.4 1.5 static std::vector<CompWindow*> cwinlist; 1.6 1.7 +CompWindow::CompWindow(Window xid) 1.8 +{ 1.9 + xwin = xid; 1.10 + xpixmap = 0; 1.11 +} 1.12 + 1.13 void add_window(CompWindow *cwin) 1.14 { 1.15 if(have_window(cwin)) { 1.16 @@ -15,7 +21,7 @@ 1.17 cwinlist.push_back(cwin); 1.18 } 1.19 1.20 -bool delete_window(CompWindow *cwin) 1.21 +bool remove_window(CompWindow *cwin) 1.22 { 1.23 auto it = std::find(cwinlist.begin(), cwinlist.end(), cwin); 1.24 if(it != cwinlist.end()) {