summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2009-05-04 20:52:30 (GMT)
committerJim Ramsay <i.am@jimramsay.com>2009-05-04 20:52:30 (GMT)
commitc82a622a64f5005646a6c66e7deb27d7ab7629c0 (patch)
treed44b17cb08e2b6ba68ea655b81a54d095c103b93 /src/FbTk
parentba14331411cc54c85c7ae9c6380fa37145771d7f (diff)
downloadfluxbox_lack-c82a622a64f5005646a6c66e7deb27d7ab7629c0.zip
fluxbox_lack-c82a622a64f5005646a6c66e7deb27d7ab7629c0.tar.bz2
Fix SystemTray owner windowwork-in-progress/argb2
Apparently InputOnly windows must actually 'CopyFromParent' and cannot use the "Default" settings.
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbWindow.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 342e968..eb11629 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -103,12 +103,15 @@ FbWindow::FbWindow(const FbWindow &parent,
103 m_lastbg_color_set(false), m_lastbg_color(0), 103 m_lastbg_color_set(false), m_lastbg_color(0),
104 m_lastbg_pm(0), m_renderer(0) { 104 m_lastbg_pm(0), m_renderer(0) {
105 105
106 Visual *visual = DefaultVisual(display(), 0); 106 Visual *visual = CopyFromParent;
107 Colormap cmap = DefaultColormap(display(), 0); 107 Colormap cmap = CopyFromParent;
108 if (depth == CopyFromParent) { 108
109 depth = DefaultDepth(display(), 0); 109 if (class_type == InputOutput) {
110 } else { 110 visual = DefaultVisual(display(), 0);
111 printf("WARNING: Non-standard depth reqested %d\n", depth); 111 cmap = DefaultColormap(display(), 0);
112 if (depth == CopyFromParent) {
113 depth = DefaultDepth(display(), 0);
114 }
112 } 115 }
113 116
114 create(parent.window(), x, y, width, height, eventmask, 117 create(parent.window(), x, y, width, height, eventmask,