1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 21:38:00 +01:00

fixed problem with default visual ID for multi-screen setups by using multiple IDs for each screen

Since a single default visual ID cannot be used for multiple screens, thus
Window Maker refused to start. There is now a global function for getting the
default visual ID. The command line argument --visual-id can be a comma
separated list of visual IDs for each screen. A default value is only set for
the first screen.
This commit is contained in:
Ralf Hoffmann
2009-12-10 19:57:23 +01:00
committed by Carlos R. Mafra
parent d8ef209c9a
commit 629b118767
3 changed files with 101 additions and 9 deletions

View File

@@ -538,7 +538,6 @@ WScreen *wScreenInit(int screen_number)
WScreen *scr;
XIconSize icon_size[1];
RContextAttributes rattr;
extern int wVisualID;
long event_mask;
XErrorHandler oldHandler;
int i;
@@ -625,9 +624,9 @@ WScreen *wScreenInit(int screen_number)
rattr.standard_colormap_mode = RUseStdColormap;
}
if (wVisualID >= 0) {
if (getWVisualID(screen_number) >= 0) {
rattr.flags |= RC_VisualID;
rattr.visualid = wVisualID;
rattr.visualid = getWVisualID(screen_number);
}
scr->rcontext = RCreateContext(dpy, screen_number, &rattr);