fix root pixmap + atoms indexes in FbPixmap

Fixes issues with transparency on multiple screens, and probably also
some alternate rootbg atoms
This commit is contained in:
simonb 2006-05-17 10:28:26 +00:00
parent 22060cac47
commit 5ddabb0f39
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
(Format: Year/Month/Day)
Changes for 0.9.16:
*06/05/17:
* Fix transparency on multiple screens & possibly bad root bg atom
reading (Simon)
FbTk/FbPixmap.cc
*06/05/16:
* Fix bug with horizontal maximisation when quadrant resizing (Mathias)
Window.hh/cc

View file

@ -369,7 +369,7 @@ void FbPixmap::rootwinPropertyNotify(int screen_num, Atom atom) {
unsigned long *data;
if (XGetWindowProperty(display(),
RootWindow(display(), i),
RootWindow(display(), screen_num),
root_prop_atoms[i],
0l, 1l,
False, XA_PIXMAP,
@ -437,7 +437,7 @@ Pixmap FbPixmap::getRootPixmap(int screen_num, bool force_update) {
checkAtoms();
if (XGetWindowProperty(display(),
RootWindow(display(), i),
root_prop_atoms[i],
root_prop_atoms[prop],
0l, 1l,
False, XA_PIXMAP,
&real_type, &real_format,