mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-04 12:54:20 +01:00
- Now when Window Maker calls wmsetbg to set the background, it will pass the
correct switch to it, depending on the value of the DisableDithering option. - Replaced some functions with macros in WINGs (wmkpoint(), wmksize() and wmkrange()). They're less expensive to call this way. - Fixed a memleak in the info panel.
This commit is contained in:
@@ -3134,18 +3134,21 @@ setWorkspaceSpecificBack(WScreen *scr, WDefaultEntry *entry, proplist_t value,
|
||||
if (close(filedes[1]) < 0)
|
||||
wsyserror("could not close pipe");
|
||||
|
||||
} else if (pid == 0) {
|
||||
} else if (pid == 0) {
|
||||
char *dither;
|
||||
|
||||
SetupEnvironment(scr);
|
||||
|
||||
if (close(0) < 0)
|
||||
wsyserror("could not close pipe");
|
||||
if (dup(filedes[0]) < 0) {
|
||||
wsyserror("dup() failed:can't set workspace specific background image");
|
||||
}
|
||||
}
|
||||
dither = wPreferences.no_dithering ? "-m" : "-d";
|
||||
if (wPreferences.smooth_workspace_back)
|
||||
execlp("wmsetbg", "wmsetbg", "-helper", "-S", "-d", NULL);
|
||||
execlp("wmsetbg", "wmsetbg", "-helper", "-S", dither, NULL);
|
||||
else
|
||||
execlp("wmsetbg", "wmsetbg", "-helper", "-d", NULL);
|
||||
execlp("wmsetbg", "wmsetbg", "-helper", dither, NULL);
|
||||
wsyserror("could not execute wmsetbg");
|
||||
exit(1);
|
||||
} else {
|
||||
@@ -3209,15 +3212,17 @@ setWorkspaceBack(WScreen *scr, WDefaultEntry *entry, proplist_t value,
|
||||
}
|
||||
} else if (PLGetNumberOfElements(value) > 0) {
|
||||
char *command;
|
||||
char *text;
|
||||
char *text;
|
||||
char *dither;
|
||||
|
||||
SetupEnvironment(scr);
|
||||
text = PLGetDescription(value);
|
||||
command = wmalloc(strlen(text)+40);
|
||||
command = wmalloc(strlen(text)+40);
|
||||
dither = wPreferences.no_dithering ? "-m" : "-d";
|
||||
if (wPreferences.smooth_workspace_back)
|
||||
sprintf(command, "wmsetbg -d -S -p '%s' &", text);
|
||||
sprintf(command, "wmsetbg %s -S -p '%s' &", dither, text);
|
||||
else
|
||||
sprintf(command, "wmsetbg -d -p '%s' &", text);
|
||||
sprintf(command, "wmsetbg %s -p '%s' &", dither, text);
|
||||
wfree(text);
|
||||
system(command);
|
||||
wfree(command);
|
||||
|
||||
@@ -808,6 +808,9 @@ destroyInfoPanel(WCoreWindow *foo, void *data, XEvent *event)
|
||||
if (thePanel->oldPix) {
|
||||
WMReleasePixmap(thePanel->oldPix);
|
||||
}
|
||||
if (thePanel->oldFont) {
|
||||
WMReleaseFont(thePanel->oldFont);
|
||||
}
|
||||
if (thePanel->icon) {
|
||||
RDestroyImage(thePanel->icon);
|
||||
}
|
||||
@@ -1068,8 +1071,8 @@ handleLogoPush(XEvent *event, void *data)
|
||||
"WHAT YOU SAY??",
|
||||
"WE GET SIGNAL",
|
||||
"SOMEBODY SET UP US THE BOMB",
|
||||
"ALL YOUR BASE ARE BELONG TO US!"
|
||||
|
||||
"ALL YOUR BASE ARE BELONG TO US!",
|
||||
"Oh My God!!! Larry is back!"
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user