mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
- Fixed crashing bug when name and class were empty for a docked app.
- Removed MIN() and MAX() macros and replaced them with WMIN() and WMAX() from WINGs. - Added a hint that Window Maker crashed, to allow windows to be placed in their correct previous positions after a crash situation and also to preserve their state before the crash (minimized, shaded, hidden, ...)
This commit is contained in:
@@ -1100,7 +1100,7 @@ EscapeWM_CLASS(char *name, char *class)
|
||||
|
||||
if (name) {
|
||||
l = strlen(name);
|
||||
ename = wmalloc(l*2);
|
||||
ename = wmalloc(l*2+1);
|
||||
j = 0;
|
||||
for (i=0; i<l; i++) {
|
||||
if (name[i]=='\\') {
|
||||
@@ -1114,7 +1114,7 @@ EscapeWM_CLASS(char *name, char *class)
|
||||
}
|
||||
if (class) {
|
||||
l = strlen(class);
|
||||
eclass = wmalloc(l*2);
|
||||
eclass = wmalloc(l*2+1);
|
||||
j = 0;
|
||||
for (i=0; i<l; i++) {
|
||||
if (class[i]=='\\') {
|
||||
|
||||
Reference in New Issue
Block a user