From b82f21acc9abc50c87caf5b0cd3bb0f6d8f7249f Mon Sep 17 00:00:00 2001 From: Jim Ramsay Date: Tue, 5 May 2009 12:17:45 -0400 Subject: Fixed multi-screen setup Of course I need to use the real screen number when getting the Default values, or it will fail on screen != 0. --- src/FbTk/FbWindow.cc | 6 +++--- 1 file 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, Colormap cmap = CopyFromParent; if (class_type == InputOutput) { - visual = DefaultVisual(display(), 0); - cmap = DefaultColormap(display(), 0); + visual = DefaultVisual(display(), m_screen_num); + cmap = DefaultColormap(display(), m_screen_num); if (depth == CopyFromParent) { - depth = DefaultDepth(display(), 0); + depth = DefaultDepth(display(), m_screen_num); } } -- cgit v0.11.2