Sun Oct 3 00:45:11 PDT 1999

(Raster)

get textclas ipc right....


SVN revision: 599
This commit is contained in:
Carsten Haitzler 1999-10-03 05:11:37 +00:00
parent 74b2e01618
commit d91ac7c3d5
2 changed files with 12 additions and 4 deletions

View File

@ -2842,3 +2842,10 @@ Sat Oct 2 21:20:50 PDT 1999
(Raster)
add $EBIN as env variable.. need for scripts.. :)
-------------------------------------------------------------------------------
Sun Oct 3 00:45:11 PDT 1999
(Raster)
get textclas ipc right....

View File

@ -1344,6 +1344,7 @@ IPC_TextClass(char *params, Client * c)
{
TextClass *t;
fprintf(stderr, "%s\n", params);
t = (TextClass *) FindItem(param1, 0, LIST_FINDBY_NAME,
LIST_TYPE_TCLASS);
if (t)
@ -1354,11 +1355,11 @@ IPC_TextClass(char *params, Client * c)
Window win;
word(params, 3, param3);
win = (Window) atoi(param3);
win = (Window) strtol(param3, (char **)NULL, 0);
word(params, 4, param3);
x = (Window) atoi(param3);
x = atoi(param3);
word(params, 5, param3);
y = (Window) atoi(param3);
y = atoi(param3);
word(params, 6, param3);
state = STATE_NORMAL;
if (!strcmp(param3, "normal"))
@ -1372,7 +1373,7 @@ IPC_TextClass(char *params, Client * c)
txt = atword(params, 7);
if (txt)
TextDraw(t, win, 0, 0, state, txt, x, y,
99999, 99999, 17, t->justification);
99999, 99999, 17, 0);
else
Esnprintf(buf, sizeof(buf), "0 0");
}