Sat Oct 9 10:10:52 PDT 1999

(Mandrake)

groups patch from Martin Tyler


SVN revision: 731
This commit is contained in:
Mandrake 1999-10-09 13:17:13 +00:00
parent 56d121d8a0
commit 7dd4e27a47
3 changed files with 22 additions and 8 deletions

View File

@ -3304,3 +3304,10 @@ want anyone that has been recognized to feel like they got credit left out.
If you've contributed patches and don't see your name listed - you NEED to
let me know ASAP. if you don't let me know in the next couple of days you
probably won't be in the 0.16.0 release's credits. (sorry)
-------------------------------------------------------------------------------
Sat Oct 9 10:10:52 PDT 1999
(Mandrake)
groups patch from Martin Tyler

View File

@ -618,7 +618,7 @@ IPC_Remember(char *params, Client * c)
EWin *ewin;
word(params, 1, param1);
win = (Window) strtol(param1, (char **)NULL, 0);
win = (Window) strtol(param1, (char **)NULL, 16);
ewin = FindItem(NULL, (int)win, LIST_FINDBY_ID, LIST_TYPE_EWIN);
if (ewin)
{
@ -652,8 +652,13 @@ IPC_Remember(char *params, Client * c)
else if (!strcmp((char *)params, "dialog"))
SnapshotEwinDialog(ewin);
SaveSnapInfo();
Esnprintf(buf, sizeof(buf), "params %s", params);
}
else
Esnprintf(buf, sizeof(buf), "Error: no parameter");
}
else
Esnprintf(buf, sizeof(buf), "Error: no window found");
}
else
Esnprintf(buf, sizeof(buf), "Error: no parameters");

View File

@ -652,18 +652,20 @@ SnapshotEwinGroups(EWin * ewin, char onoff)
groups = ListWinGroups(gwins[i], GROUP_SELECT_EWIN_ONLY, &num_groups);
if (groups)
{
if (gwins[i]->snap)
UnsnapshotEwin(gwins[i]);
sn = GetSnapshot(gwins[i]);
sn = gwins[i]->snap;
if (!sn)
sn = GetSnapshot(gwins[i]);
if (sn)
{
if (sn->groups)
Efree(sn->groups);
sn->groups = Emalloc(sizeof(int) * num_groups);
sn->num_groups = num_groups;
for (j = 0; j < num_groups; j++)
{
sn->groups[j] = groups[j]->index;
sn->num_groups = num_groups;
}
sn->groups[j] = groups[j]->index;
}
Efree(groups);
}