diff options
author | Jim Ramsay <i.am@jimramsay.com> | 2009-05-05 16:17:45 (GMT) |
---|---|---|
committer | Jim Ramsay <i.am@jimramsay.com> | 2009-05-06 12:41:45 (GMT) |
commit | b82f21acc9abc50c87caf5b0cd3bb0f6d8f7249f (patch) | |
tree | 942bce45ac21243abe49377c645626fcaacb890e /src/FbTk | |
parent | 66f0ad89bca2451556716fa749621486ab0204a6 (diff) | |
download | fluxbox_lack-b82f21acc9abc50c87caf5b0cd3bb0f6d8f7249f.zip fluxbox_lack-b82f21acc9abc50c87caf5b0cd3bb0f6d8f7249f.tar.bz2 |
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.
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/FbWindow.cc | 6 |
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 | ||