diff --git a/src/dock.c b/src/dock.c index 0c88a322..222627f9 100644 --- a/src/dock.c +++ b/src/dock.c @@ -2000,7 +2000,7 @@ finish: return dock; } -void wDockLaunchWithState(WDock *dock, WAppIcon *btn, WSavedState *state) +void wDockLaunchWithState(WAppIcon *btn, WSavedState *state) { if (btn && btn->command && !btn->running && !btn->launching) { btn->drop_launch = 0; @@ -2034,7 +2034,7 @@ void wDockDoAutoLaunch(WDock *dock, int workspace) state->workspace = workspace; /* TODO: this is klugy and is very difficult to understand * what's going on. Try to clean up */ - wDockLaunchWithState(dock, btn, state); + wDockLaunchWithState(btn, state); } } diff --git a/src/dock.h b/src/dock.h index 6df8da76..ff6a5331 100644 --- a/src/dock.h +++ b/src/dock.h @@ -90,7 +90,7 @@ void wDockFinishLaunch(WAppIcon *icon); void wDockTrackWindowLaunch(WDock *dock, Window window); WAppIcon *wDockFindIconForWindow(WDock *dock, Window window); void wDockDoAutoLaunch(WDock *dock, int workspace); -void wDockLaunchWithState(WDock *dock, WAppIcon *btn, WSavedState *state); +void wDockLaunchWithState(WAppIcon *btn, WSavedState *state); #ifdef XDND int wDockReceiveDNDDrop(WScreen *scr, XEvent *event); diff --git a/src/session.c b/src/session.c index f7f5f3f4..12a07443 100644 --- a/src/session.c +++ b/src/session.c @@ -513,7 +513,7 @@ void wSessionRestoreState(WScreen *scr) } if (found) { - wDockLaunchWithState(dock, btn, state); + wDockLaunchWithState(btn, state); } else if ((pid = execCommand(scr, command)) > 0) { wWindowAddSavedState(instance, class, command, pid, state); } else {