diff options
author | fluxgen <fluxgen> | 2002-11-26 17:48:58 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-11-26 17:48:58 (GMT) |
commit | dcafcfa17d90412e83923d67e95df96dab46d333 (patch) | |
tree | c2bf1d2d9fa3c10b9ae6d88235a03f0d28faca33 | |
parent | d9525a3efb4e6dc6d955de2316e4dd95541da851 (diff) | |
download | fluxbox_paul-dcafcfa17d90412e83923d67e95df96dab46d333.zip fluxbox_paul-dcafcfa17d90412e83923d67e95df96dab46d333.tar.bz2 |
fixed FbTk issues
-rw-r--r-- | util/Makefile.am | 5 | ||||
-rw-r--r-- | util/bsetroot.cc | 20 |
2 files changed, 11 insertions, 14 deletions
diff --git a/util/Makefile.am b/util/Makefile.am index c40970f..94f5723 100644 --- a/util/Makefile.am +++ b/util/Makefile.am | |||
@@ -1,10 +1,11 @@ | |||
1 | # util/Makefile.am for Blackbox 0.61.x - an X11 Window manager | 1 | # util/Makefile.am for Blackbox 0.61.x - an X11 Window manager |
2 | SUBDIRS = fbrun | 2 | SUBDIRS = fbrun |
3 | INCLUDES=-I../src/FbTk/ | ||
3 | bin_SCRIPTS = bsetbg fluxbox-generate_menu | 4 | bin_SCRIPTS = bsetbg fluxbox-generate_menu |
4 | bin_PROGRAMS = bsetroot | 5 | bin_PROGRAMS = bsetroot |
5 | bsetroot_SOURCES = bsetroot.cc bsetroot.hh | 6 | bsetroot_SOURCES = bsetroot.cc bsetroot.hh |
6 | bsetroot_LDADD = ../src/BaseDisplay.o ../src/Timer.o ../src/Image.o ../src/i18n.o ../src/FbAtoms.o \ | 7 | bsetroot_LDADD = ../src/BaseDisplay.o ../src/Timer.o ../src/Image.o ../src/i18n.o ../src/FbAtoms.o \ |
7 | ../src/Color.o ../src/Texture.o ../src/StringUtil.o | 8 | ../src/StringUtil.o ../src/FbTk/.libs/libFbTk.a |
8 | 9 | ||
9 | MAINTAINERCLEANFILES = Makefile.in | 10 | MAINTAINERCLEANFILES = Makefile.in |
10 | EXTRA_DIST=bsetbg fluxbox-generate_menu | 11 | EXTRA_DIST=bsetbg fluxbox-generate_menu |
@@ -13,5 +14,5 @@ distclean-local: | |||
13 | rm -f *\~ | 14 | rm -f *\~ |
14 | 15 | ||
15 | bsetroot.o: bsetroot.cc ../config.h bsetroot.hh ../src/BaseDisplay.hh \ | 16 | bsetroot.o: bsetroot.cc ../config.h bsetroot.hh ../src/BaseDisplay.hh \ |
16 | ../src/Timer.hh ../src/Image.hh ../src/FbAtoms.hh ../src/Color.hh ../src/Texture.hh | 17 | ../src/Timer.hh ../src/Image.hh ../src/FbAtoms.hh ../src/FbTk/Color.hh ../src/FbTk/Texture.hh |
17 | 18 | ||
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 | */ |
160 | void bsetroot::setRootAtoms(Pixmap pixmap, int screen) { | 156 | void 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; |