aboutsummaryrefslogtreecommitdiff
path: root/src/FbRootWindow.hh
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-06-25 20:25:48 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-06-26 14:29:34 (GMT)
commitdcdde4d32c93d01df205bc06d7dfcbd356be031f (patch)
treecc44a58c3e1bbe25e94e969757b8eedb89ca67da /src/FbRootWindow.hh
parent484c33bf25a37952a91123fb728e4b983e70f531 (diff)
downloadfluxbox-dcdde4d32c93d01df205bc06d7dfcbd356be031f.zip
fluxbox-dcdde4d32c93d01df205bc06d7dfcbd356be031f.tar.bz2
replace FbRootWindow::depth with maxDepth
The depth member of FbWindow was abused to store the maximum depth but that gets overridden with geometry changes of the root window (screen layout changes) so we store and read the value explicitly while ::depth() maintains the actual depth of the root window The result of this is that frames for ARGB windows were created with a wrong depth and failed to reparent the client window. BUG: 1102 BUG: 1058
Diffstat (limited to 'src/FbRootWindow.hh')
-rw-r--r--src/FbRootWindow.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbRootWindow.hh b/src/FbRootWindow.hh
index 8e97cc3..739c9ef 100644
--- a/src/FbRootWindow.hh
+++ b/src/FbRootWindow.hh
@@ -41,6 +41,7 @@ public:
41 int decorationDepth() const { return m_decorationDepth; } 41 int decorationDepth() const { return m_decorationDepth; }
42 Visual *decorationVisual() const { return m_decorationVisual; } 42 Visual *decorationVisual() const { return m_decorationVisual; }
43 Colormap decorationColormap() const { return m_decorationColormap; } 43 Colormap decorationColormap() const { return m_decorationColormap; }
44 int maxDepth() const { return m_maxDepth; }
44 45
45private: 46private:
46 Visual *m_visual; 47 Visual *m_visual;
@@ -49,6 +50,7 @@ private:
49 int m_decorationDepth; 50 int m_decorationDepth;
50 Visual *m_decorationVisual; 51 Visual *m_decorationVisual;
51 Colormap m_decorationColormap; 52 Colormap m_decorationColormap;
53 int m_maxDepth;
52}; 54};
53 55
54#endif // FBROOTWINDOW_HH 56#endif // FBROOTWINDOW_HH