Mon Oct 18 16:16:57 PDT 1999

(Raster)

remember ipc uses scanf now
raise, lower & layer win_op calls

minor other fixes


SVN revision: 843
This commit is contained in:
Carsten Haitzler 1999-10-18 17:35:28 +00:00
parent 158b90cb45
commit a89124759b
2 changed files with 32 additions and 5 deletions

View File

@ -3526,3 +3526,13 @@ Mon Oct 18 15:34:23 PDT 1999
(Mandrake)
fixed default control.cfg dock direction. fixed in setup.c also earlier
-------------------------------------------------------------------------------
Mon Oct 18 16:16:57 PDT 1999
(Raster)
remember ipc uses scanf now
raise, lower & layer win_op calls
minor other fixes

View File

@ -311,7 +311,10 @@ IPCStruct IPCArray[] =
"win_op <windowid> <move/resize> <x> <y>\n "
"(you can use ? and ?? to retreive client and frame locations)\n "
"win_op <windowid> focus\n "
"win_op <windowid> title <title>"
"win_op <windowid> title <title>\n"
"win_op <windowid> raise\n"
"win_op <windowid> lower\n"
"win_op <windowid> layer <0-100,4=normal>"
},
{
IPC_WinList,
@ -590,7 +593,7 @@ IPCStruct IPCArray[] =
IPC_CurrentTheme,
"current_theme",
"Returns the name of the currently used theme",
NULL
""
}
};
@ -623,7 +626,7 @@ IPC_Remember(char *params, Client * c)
Window win;
EWin *ewin;
win = (Window) strtol(params, (char **)NULL, 0);
sscanf(params, "%8x", (int *)&win);
ewin = FindItem(NULL, (int)win, LIST_FINDBY_ID, LIST_TYPE_EWIN);
if (ewin)
{
@ -3907,6 +3910,21 @@ IPC_WinOps(char *params, Client * c)
word(params, 3, param1);
MaxSize(ewin, param1);
}
else if (!strcmp(operation, "raise"))
{
RaiseEwin(ewin);
}
else if (!strcmp(operation, "lower"))
{
LowerEwin(ewin);
}
else if (!strcmp(operation, "layer"))
{
word(params, 3, param1);
ewin->layer = atoi(param1);
RaiseEwin(ewin);
RememberImportantInfoForEwin(ewin);
}
else if (!strcmp(operation, "border"))
{
Border *b;
@ -4573,9 +4591,8 @@ IPC_CurrentTheme(char *params, Client * c)
if (buf[0])
CommsSend(c, buf);
params = NULL;
return;
params = NULL;
}
void