From 5c7512fcd7af173da52ffe85e0c80af3f5db459e Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 7 Oct 1999 00:10:41 +0000 Subject: [PATCH] Wed Oct 6 20:31:02 PDT 1999 (Raster) need to add nop ipc call - need it for syncing purposes. SVN revision: 696 --- src/ChangeLog | 7 +++++++ src/ipc.c | 20 +++++++++++++++++++- src/kde.c | 46 +++++++++++++++++++++++----------------------- 3 files changed, 49 insertions(+), 24 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f0663f50..983210c7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3164,3 +3164,10 @@ Wed Oct 6 17:38:58 PDT 1999 (Raster) turn off draw queue for ipc imageclass draws... + +------------------------------------------------------------------------------- + +Wed Oct 6 20:31:02 PDT 1999 +(Raster) + +need to add nop ipc call - need it for syncing purposes. diff --git a/src/ipc.c b/src/ipc.c index c29b6ac0..ca501295 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -79,6 +79,7 @@ void IPC_DockPosition(char *params, Client * c); void IPC_KDE(char *params, Client * c); void IPC_MemDebug(char *params, Client * c); void IPC_Remember(char *params, Client * c); +void IPC_Nop(char *params, Client * c); /* Changes By Asmodean_ / #E@Efnet * @@ -129,6 +130,12 @@ IPCStruct IPCArray[] = "displays the current version of Enlightenment running", NULL }, + { + IPC_Nop, + "nop", + "IPC No-operation - returns nop", + NULL + }, { IPC_Copyright, "copyright", @@ -600,6 +607,14 @@ IPCStruct IPCArray[] = * - Mandrake */ +void +IPC_Nop(char *params, Client * c) +{ + CommsSend(c, "nop"); + params = NULL; + return; +} + void IPC_Remember(char *params, Client * c) { @@ -1332,7 +1347,7 @@ IPC_Cursor(char *params, Client * c) void IPC_TextClass(char *params, Client * c) { - + char pq; char buf[FILEPATH_LEN_MAX]; buf[0] = 0; @@ -1396,11 +1411,14 @@ IPC_TextClass(char *params, Client * c) else if (!strcmp(param3, "disabled")) state = STATE_DISABLED; txt = atword(params, 7); + pq = queue_up; + queue_up = 0; if (txt) TextDraw(t, win, 0, 0, state, txt, x, y, 99999, 99999, 17, 0); else Esnprintf(buf, sizeof(buf), "0 0"); + queue_up = pq; } else Esnprintf(buf, sizeof(buf), "TextClass %s not found", diff --git a/src/kde.c b/src/kde.c index 89f9e6bc..b39505e0 100644 --- a/src/kde.c +++ b/src/kde.c @@ -98,7 +98,7 @@ KModuleList; static KModuleList *KModules = NULL; -void +void KDE_ClientMessage(Window win, Atom atom, long data, Time timestamp) { @@ -121,7 +121,7 @@ KDE_ClientMessage(Window win, Atom atom, long data, Time timestamp) } -void +void KDE_ClientTextMessage(Window win, Atom atom, char *data) { @@ -143,7 +143,7 @@ KDE_ClientTextMessage(Window win, Atom atom, char *data) } -void +void KDE_SendMessagesToModules(Atom atom, long data) { @@ -162,7 +162,7 @@ KDE_SendMessagesToModules(Atom atom, long data) } -void +void KDE_UpdateFocusedWindow(void) { @@ -211,7 +211,7 @@ KDE_UpdateFocusedWindow(void) } -void +void KDE_NewWindow(EWin * ewin) { @@ -266,7 +266,7 @@ KDE_NewWindow(EWin * ewin) } -void +void KDE_RemoveWindow(EWin * ewin) { @@ -296,7 +296,7 @@ KDE_RemoveWindow(EWin * ewin) } -void +void KDE_AddModule(Window win) { @@ -431,7 +431,7 @@ KDE_AddModule(Window win) } -void +void KDE_RemoveModule(Window win) { @@ -486,7 +486,7 @@ KDE_RemoveModule(Window win) } -void +void KDE_Init(void) { /* @@ -607,7 +607,7 @@ KDE_Init(void) } -void +void KDE_Shutdown(void) { @@ -677,7 +677,7 @@ KDE_Shutdown(void) } -void +void KDE_ClientInit(Window win) { @@ -710,7 +710,7 @@ KDE_ClientInit(Window win) } -void +void KDE_ClientChange(Window win, Atom a) { @@ -803,7 +803,7 @@ KDE_ClientChange(Window win, Atom a) } -void +void KDE_GetDecorationHint(Window win, long *dechints) { @@ -873,7 +873,7 @@ KDE_GetDecorationHint(Window win, long *dechints) } -void +void KDE_CheckClientHints(Window win) { @@ -896,7 +896,7 @@ KDE_CheckClientHints(Window win) } -int +int KDE_WindowCommand(EWin * ewin, char *cmd) { @@ -952,7 +952,7 @@ KDE_WindowCommand(EWin * ewin, char *cmd) } -void +void KDE_Command(char *cmd, XClientMessageEvent * event) { @@ -1031,7 +1031,7 @@ KDE_Command(char *cmd, XClientMessageEvent * event) } -void +void KDE_ProcessClientMessage(XClientMessageEvent * event) { @@ -1097,7 +1097,7 @@ KDE_ProcessClientMessage(XClientMessageEvent * event) } -void +void KDE_ModuleAssert(Window win) { @@ -1111,7 +1111,7 @@ KDE_ModuleAssert(Window win) } -void +void KDE_PrepModuleEvent(Window win, KMessage msg) { @@ -1160,7 +1160,7 @@ KDE_PrepModuleEvent(Window win, KMessage msg) } -void +void KDE_SetRootArea(void) { @@ -1179,7 +1179,7 @@ KDE_SetRootArea(void) } -void +void KDE_SetNumDesktops(void) { @@ -1215,7 +1215,7 @@ KDE_SetNumDesktops(void) EDBUG_RETURN_; } -void +void KDE_HintChange(Atom a) { @@ -1279,7 +1279,7 @@ KDE_HintChange(Atom a) } -void +void KDE_UpdateClient(EWin * ewin) {