1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Fixed function-pointer compatibility.

This commit is contained in:
Jeremy Sowden
2019-07-12 23:28:11 +01:00
committed by Carlos R. Mafra
parent a7f8e990db
commit 41193bdacd

View File

@@ -92,7 +92,7 @@ static void iconMouseDown(WObjDescriptor *desc, XEvent *event);
static pid_t execCommand(WAppIcon *btn, const char *command, WSavedState *state); static pid_t execCommand(WAppIcon *btn, const char *command, WSavedState *state);
static void trackDeadProcess(pid_t pid, unsigned char status, WDock *dock); static void trackDeadProcess(pid_t pid, unsigned int status, void *cdata);
static int getClipButton(int px, int py); static int getClipButton(int px, int py);
@@ -3091,7 +3091,7 @@ static pid_t execCommand(WAppIcon *btn, const char *command, WSavedState *state)
state->workspace = scr->current_workspace; state->workspace = scr->current_workspace;
} }
wWindowAddSavedState(btn->wm_instance, btn->wm_class, cmdline, pid, state); wWindowAddSavedState(btn->wm_instance, btn->wm_class, cmdline, pid, state);
wAddDeathHandler(pid, (WDeathHandler *) trackDeadProcess, btn->dock); wAddDeathHandler(pid, trackDeadProcess, btn->dock);
} else if (state) { } else if (state) {
wfree(state); wfree(state);
} }
@@ -3334,8 +3334,9 @@ void wClipUpdateForWorkspaceChange(WScreen *scr, int workspace)
} }
} }
static void trackDeadProcess(pid_t pid, unsigned char status, WDock *dock) static void trackDeadProcess(pid_t pid, unsigned int status, void *cdata)
{ {
WDock *dock = cdata;
WAppIcon *icon; WAppIcon *icon;
int i; int i;