aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbPixmap.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-21 16:07:45 (GMT)
committersimonb <simonb>2006-04-21 16:07:45 (GMT)
commit67326a080a6b8029c1d3b0cc23dfadaf888da32f (patch)
treed366009b22706bf6cf6a0e646dea03a414a62ce3 /src/FbTk/FbPixmap.cc
parenta8b9672792908ca6f3a05a6060ce9927adb878b1 (diff)
downloadfluxbox-67326a080a6b8029c1d3b0cc23dfadaf888da32f.zip
fluxbox-67326a080a6b8029c1d3b0cc23dfadaf888da32f.tar.bz2
update transparent window backgrounds on bg change
Diffstat (limited to 'src/FbTk/FbPixmap.cc')
-rw-r--r--src/FbTk/FbPixmap.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/FbTk/FbPixmap.cc b/src/FbTk/FbPixmap.cc
index 675e838..30f2c05 100644
--- a/src/FbTk/FbPixmap.cc
+++ b/src/FbTk/FbPixmap.cc
@@ -25,6 +25,7 @@
25#include "App.hh" 25#include "App.hh"
26#include "GContext.hh" 26#include "GContext.hh"
27#include "Transparent.hh" 27#include "Transparent.hh"
28#include "FbWindow.hh"
28 29
29#include <X11/Xutil.h> 30#include <X11/Xutil.h>
30#include <X11/Xatom.h> 31#include <X11/Xatom.h>
@@ -390,9 +391,14 @@ void FbPixmap::rootwinPropertyNotify(int screen_num, Atom atom) {
390void FbPixmap::setRootPixmap(int screen_num, Pixmap pm) { 391void FbPixmap::setRootPixmap(int screen_num, Pixmap pm) {
391 if (!m_root_pixmaps) { 392 if (!m_root_pixmaps) {
392 m_root_pixmaps = new Pixmap[ScreenCount(display())]; 393 m_root_pixmaps = new Pixmap[ScreenCount(display())];
394 for (int i=0; i < ScreenCount(display()); ++i)
395 m_root_pixmaps[i] = None;
393 } 396 }
394 397
395 m_root_pixmaps[screen_num] = pm; 398 if (m_root_pixmaps[screen_num] != pm) {
399 m_root_pixmaps[screen_num] = pm;
400 FbWindow::updatedAlphaBackground(screen_num);
401 }
396} 402}
397 403
398Pixmap FbPixmap::getRootPixmap(int screen_num, bool force_update) { 404Pixmap FbPixmap::getRootPixmap(int screen_num, bool force_update) {