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

added igradient texture

fixed some bugs
This commit is contained in:
kojima
2000-05-21 16:34:23 +00:00
parent 71f735069a
commit 1e351cb59b
12 changed files with 226 additions and 57 deletions

View File

@@ -449,17 +449,12 @@ getWindowState(WScreen *scr, proplist_t win_state)
value = PLGetDictionaryEntry(win_state, sGeometry);
if (value && PLIsString(value)) {
if (sscanf(PLGetString(value), "%ix%i+%i+%i",
if (!(sscanf(PLGetString(value), "%ix%i+%i+%i",
&state->w, &state->h, &state->x, &state->y)==4 &&
(state->w>0 && state->h>0)) {
state->use_geometry = 1;
} else if (sscanf(PLGetString(value), "%i,%i,%i,%i",
&state->x, &state->y, &state->w, &state->h)==4 &&
(state->w>0 && state->h>0)) {
/* TODO: remove redundant sscanf() in version 0.20.x */
state->use_geometry = 1;
}
(state->w>0 && state->h>0))) {
state->w = 0;
state->h = 0;
}
}
return state;