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

wmaker: Removed unused argument in function 'wDockLaunchWithState'

The function did not use the argument 'dock', so remove it.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-11-02 17:36:33 +01:00
committed by Carlos R. Mafra
parent e56438d2c1
commit b565b48b92
3 changed files with 4 additions and 4 deletions

View File

@@ -2000,7 +2000,7 @@ finish:
return dock; return dock;
} }
void wDockLaunchWithState(WDock *dock, WAppIcon *btn, WSavedState *state) void wDockLaunchWithState(WAppIcon *btn, WSavedState *state)
{ {
if (btn && btn->command && !btn->running && !btn->launching) { if (btn && btn->command && !btn->running && !btn->launching) {
btn->drop_launch = 0; btn->drop_launch = 0;
@@ -2034,7 +2034,7 @@ void wDockDoAutoLaunch(WDock *dock, int workspace)
state->workspace = workspace; state->workspace = workspace;
/* TODO: this is klugy and is very difficult to understand /* TODO: this is klugy and is very difficult to understand
* what's going on. Try to clean up */ * what's going on. Try to clean up */
wDockLaunchWithState(dock, btn, state); wDockLaunchWithState(btn, state);
} }
} }

View File

@@ -90,7 +90,7 @@ void wDockFinishLaunch(WAppIcon *icon);
void wDockTrackWindowLaunch(WDock *dock, Window window); void wDockTrackWindowLaunch(WDock *dock, Window window);
WAppIcon *wDockFindIconForWindow(WDock *dock, Window window); WAppIcon *wDockFindIconForWindow(WDock *dock, Window window);
void wDockDoAutoLaunch(WDock *dock, int workspace); void wDockDoAutoLaunch(WDock *dock, int workspace);
void wDockLaunchWithState(WDock *dock, WAppIcon *btn, WSavedState *state); void wDockLaunchWithState(WAppIcon *btn, WSavedState *state);
#ifdef XDND #ifdef XDND
int wDockReceiveDNDDrop(WScreen *scr, XEvent *event); int wDockReceiveDNDDrop(WScreen *scr, XEvent *event);

View File

@@ -513,7 +513,7 @@ void wSessionRestoreState(WScreen *scr)
} }
if (found) { if (found) {
wDockLaunchWithState(dock, btn, state); wDockLaunchWithState(btn, state);
} else if ((pid = execCommand(scr, command)) > 0) { } else if ((pid = execCommand(scr, command)) > 0) {
wWindowAddSavedState(instance, class, command, pid, state); wWindowAddSavedState(instance, class, command, pid, state);
} else { } else {