From ea295fddbb58b6f897841d43475ccdfd8807b45d Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Thu, 13 Jan 2005 19:10:52 +0000 Subject: [PATCH] Oops - Fix "remember" for epplets. SVN revision: 12957 --- src/ipc.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/ipc.c b/src/ipc.c index 6159f815..e6c30527 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -895,6 +895,33 @@ IPC_WinOps(const char *params, Client * c __UNUSED__) return; } +static void +IPC_Remember(const char *params, Client * c __UNUSED__) +{ + int window; + EWin *ewin; + + if (!params) + { + IpcPrintf("Error: no parameters\n"); + goto done; + } + + window = 0; + sscanf(params, "%x", &window); + ewin = FindItem(NULL, window, LIST_FINDBY_ID, LIST_TYPE_EWIN); + if (!ewin) + { + IpcPrintf("Error: Window not found: %#x\n", window); + goto done; + } + + SnapshotEwinSet(ewin, atword(params, 2)); + + done: + return; +} + static void IPC_ForceSave(const char *params __UNUSED__, Client * c __UNUSED__) { @@ -1627,6 +1654,13 @@ IpcItem IPCArray[] = { "usage:\n" " reparent \n"}, { IPC_Slideout, "slideout", NULL, "Show slideout", NULL}, + { + IPC_Remember, + "remember", NULL, + "Remembers parameters for client windows (obsolete)", + " remember ...\n" + "For compatibility with epplets only. In stead use\n" + " wop snap ...\n"}, }; static int ipc_item_count = 0;