summaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-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,