mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +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:
committed by
Carlos R. Mafra
parent
e56438d2c1
commit
b565b48b92
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user