Thu Sep 23 14:40:50 PDT 1999

(KainX)

Woops.  Width and height of 0 doesn't make for a happy pixmap.  Let
E figure it out.  This fixes Eterm's auto mode.


SVN revision: 381
This commit is contained in:
Michael Jennings 1999-09-23 20:54:03 +00:00
parent fd10d75a9f
commit 0530a107d4
2 changed files with 11 additions and 1 deletions

View File

@ -2269,3 +2269,11 @@ multiple desktops and via the titlebar or the menu,
so group effects are limited to the current desktop so group effects are limited to the current desktop
for now. for now.
-------------------------------------------------------------------------------
Thu Sep 23 14:40:50 PDT 1999
(KainX)
Woops. Width and height of 0 doesn't make for a happy pixmap. Let
E figure it out. This fixes Eterm's auto mode.

View File

@ -1474,7 +1474,7 @@ IPC_ImageClass(char *params, Client * c)
{ {
Window win; Window win;
char *winptr, *hptr, state[20]; char *winptr, *hptr, state[20];
int st, w = 0, h = 0; int st, w = -1, h = -1;
winptr = atword(params, 3); winptr = atword(params, 3);
word(params, 4, state); word(params, 4, state);
@ -1500,6 +1500,8 @@ IPC_ImageClass(char *params, Client * c)
w = (int)strtol(atword(winptr, 2), (char **)NULL, 0); w = (int)strtol(atword(winptr, 2), (char **)NULL, 0);
h = (int)strtol(hptr, (char **)NULL, 0); h = (int)strtol(hptr, (char **)NULL, 0);
} }
printf("IclassApply(0x%08x, 0x%08x, %d, %d, 0, 0, %d, 0);\n",
iclass, win, w, h, st);
IclassApply(iclass, win, w, h, 0, 0, st, 0); IclassApply(iclass, win, w, h, 0, 0, st, 0);
} }
} }