aboutsummaryrefslogtreecommitdiff
path: root/util/bsetroot.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-11-26 17:48:58 (GMT)
committerfluxgen <fluxgen>2002-11-26 17:48:58 (GMT)
commitdcafcfa17d90412e83923d67e95df96dab46d333 (patch)
treec2bf1d2d9fa3c10b9ae6d88235a03f0d28faca33 /util/bsetroot.cc
parentd9525a3efb4e6dc6d955de2316e4dd95541da851 (diff)
downloadfluxbox-dcafcfa17d90412e83923d67e95df96dab46d333.zip
fluxbox-dcafcfa17d90412e83923d67e95df96dab46d333.tar.bz2
fixed FbTk issues
Diffstat (limited to 'util/bsetroot.cc')
-rw-r--r--util/bsetroot.cc20
1 files changed, 8 insertions, 12 deletions
diff --git a/util/bsetroot.cc b/util/bsetroot.cc
index 5c209e0..d38a245 100644
--- a/util/bsetroot.cc
+++ b/util/bsetroot.cc
@@ -18,7 +18,7 @@
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 20
21// $Id: bsetroot.cc,v 1.10 2002/11/25 22:23:03 fluxgen Exp $ 21// $Id: bsetroot.cc,v 1.11 2002/11/26 17:48:58 fluxgen Exp $
22 22
23#include "bsetroot.hh" 23#include "bsetroot.hh"
24 24
@@ -47,7 +47,7 @@ bsetroot::bsetroot(int argc, char **argv, char *dpy_name)
47 bool mod = false, sol = false, grd = false; 47 bool mod = false, sol = false, grd = false;
48 int mod_x = 0, mod_y = 0, i = 0; 48 int mod_x = 0, mod_y = 0, i = 0;
49 49
50 img_ctrl = new BImageControl*[10]; 50 img_ctrl = new BImageControl*[getNumberOfScreens()];
51 for (; i < getNumberOfScreens(); i++) { 51 for (; i < getNumberOfScreens(); i++) {
52 img_ctrl[i] = new BImageControl(getScreenInfo(i), true); 52 img_ctrl[i] = new BImageControl(getScreenInfo(i), true);
53 } 53 }
@@ -138,12 +138,8 @@ bsetroot::~bsetroot() {
138 138
139 delete [] pixmaps; 139 delete [] pixmaps;
140 } 140 }
141 #ifdef DEBUG
142 else
143 cerr<<"~bsetroot: why don't we have any pixmaps?"<<endl;
144 #endif // DEBUG
145 141
146 if (img_ctrl) { 142 if (img_ctrl != 0) {
147 int i = 0; 143 int i = 0;
148 for (; i < num_screens; i++) 144 for (; i < num_screens; i++)
149 delete img_ctrl[i]; 145 delete img_ctrl[i];
@@ -152,11 +148,11 @@ bsetroot::~bsetroot() {
152 } 148 }
153} 149}
154 150
155//------------ setRootAtoms --------------- 151/**
156// set root pixmap atoms so that apps like 152 set root pixmap atoms so that apps like
157// Eterm and xchat will be able to use 153 Eterm and xchat will be able to use
158// transparent background 154 transparent background
159//----------------------------------------- 155*/
160void bsetroot::setRootAtoms(Pixmap pixmap, int screen) { 156void bsetroot::setRootAtoms(Pixmap pixmap, int screen) {
161 Atom atom_root, atom_eroot, type; 157 Atom atom_root, atom_eroot, type;
162 unsigned char *data_root, *data_eroot; 158 unsigned char *data_root, *data_eroot;