summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/FbWindow.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index eb11629..9179cb3 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -107,10 +107,10 @@ FbWindow::FbWindow(const FbWindow &parent,
107 Colormap cmap = CopyFromParent; 107 Colormap cmap = CopyFromParent;
108 108
109 if (class_type == InputOutput) { 109 if (class_type == InputOutput) {
110 visual = DefaultVisual(display(), 0); 110 visual = DefaultVisual(display(), m_screen_num);
111 cmap = DefaultColormap(display(), 0); 111 cmap = DefaultColormap(display(), m_screen_num);
112 if (depth == CopyFromParent) { 112 if (depth == CopyFromParent) {
113 depth = DefaultDepth(display(), 0); 113 depth = DefaultDepth(display(), m_screen_num);
114 } 114 }
115 } 115 }
116 116