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

fixed wrong env setup when setting background

This patch fixes a problem with restarting Window Maker in multi-screen
environments. The code for setting the background by calling wmsetbg
changes the environment. In multi-screen setups the DISPLAY variable
becomes :0.0 instead of :0 (for example). The restarted Window Maker
process therefore only manages one screen.
This commit is contained in:
Ralf Hoffmann
2009-12-04 14:57:01 +01:00
committed by Carlos R. Mafra
parent 6c6e832c52
commit fe8ab024af

View File

@@ -2988,7 +2988,6 @@ static int setWorkspaceBack(WScreen * scr, WDefaultEntry * entry, WMPropList * v
char *dither;
int len;
SetupEnvironment(scr);
text = WMGetPropListDescription(value, False);
len = strlen(text) + 40;
command = wmalloc(len);
@@ -2998,7 +2997,7 @@ static int setWorkspaceBack(WScreen * scr, WDefaultEntry * entry, WMPropList * v
else
snprintf(command, len, "wmsetbg %s -p '%s' &", dither, text);
wfree(text);
system(command);
ExecuteShellCommand(scr, command);
wfree(command);
}
WMReleasePropList(value);