summaryrefslogtreecommitdiff
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-06 12:41:45 (GMT)
commit66f0ad89bca2451556716fa749621486ab0204a6 (patch)
treed44b17cb08e2b6ba68ea655b81a54d095c103b93
parent51956433627918cb6f0fddeb09b1438facd28b25 (diff)
downloadfluxbox_lack-66f0ad89bca2451556716fa749621486ab0204a6.zip
fluxbox_lack-66f0ad89bca2451556716fa749621486ab0204a6.tar.bz2
Fix SystemTray owner window error
Apparently InputOnly windows must actually 'CopyFromParent' and cannot use the "Default" settings of the root window.
-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,