1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

Tidy comms between external apps and wm a bit

- one instance of this left in setstyle, it will follow later
This commit is contained in:
Tamas TEVESZ
2010-04-01 03:26:30 +02:00
committed by Carlos R. Mafra
parent e7a46d5cdf
commit 81aaed2bf8
2 changed files with 17 additions and 5 deletions

View File

@@ -926,7 +926,22 @@ static void handleClientMessage(XEvent * event)
}
} else if (event->xclient.message_type == _XA_WINDOWMAKER_COMMAND) {
wDefaultsCheckDomains(NULL);
char *command;
size_t len;
len = sizeof(event->xclient.data.b) + 1;
command = wmalloc(len);
memset(command, 0, len);
strncpy(command, event->xclient.data.b, sizeof(event->xclient.data.b));
if (strncmp(command, "Reconfigure", sizeof("Reconfigure")) == 0) {
wwarning(_("Got Reconfigure command"));
wDefaultsCheckDomains(NULL);
} else {
wwarning(_("Got unknown command %s"), command);
}
wfree(command);
} else if (event->xclient.message_type == _XA_WINDOWMAKER_WM_FUNCTION) {
WApplication *wapp;