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

Removed unused WScreen argument from dock's clip state functions

Now that the workspace are not more attached to a screen, the
parameter is not needed anymore.
This commit is contained in:
Christophe CURIS
2013-10-12 15:35:47 +02:00
committed by Carlos R. Mafra
parent 9c6e71ead0
commit fd869154c6
4 changed files with 6 additions and 6 deletions

View File

@@ -1556,7 +1556,7 @@ void wDockSaveState(WScreen *scr, WMPropList *old_state)
WMReleasePropList(dock_state);
}
void wClipSaveState(WScreen *scr)
void wClipSaveState(void)
{
WMPropList *clip_state;
@@ -1566,7 +1566,7 @@ void wClipSaveState(WScreen *scr)
WMReleasePropList(clip_state);
}
WMPropList *wClipSaveWorkspaceState(WScreen *scr, int workspace)
WMPropList *wClipSaveWorkspaceState(int workspace)
{
return dockSaveState(w_global.workspace.array[workspace]->clip);
}

View File

@@ -97,8 +97,8 @@ int wDockReceiveDNDDrop(WScreen *scr, XEvent *event);
#endif
void wClipIconPaint(void);
void wClipSaveState(WScreen *scr);
WMPropList *wClipSaveWorkspaceState(WScreen *scr, int workspace);
void wClipSaveState(void);
WMPropList *wClipSaveWorkspaceState(int workspace);
WAppIcon *wClipRestoreState(WScreen *scr, WMPropList *clip_state);
void wDrawerIconPaint(WAppIcon *dicon);

View File

@@ -866,7 +866,7 @@ void wScreenSaveState(WScreen * scr)
}
}
if (!wPreferences.flags.noclip) {
wClipSaveState(scr);
wClipSaveState();
} else {
if ((foo = WMGetFromPLDictionary(old_state, dClip)) != NULL) {
WMPutInPLDictionary(w_global.session_state, dClip, foo);

View File

@@ -812,7 +812,7 @@ void wWorkspaceSaveState(WScreen * scr, WMPropList * old_state)
wks_state = WMCreatePLDictionary(dName, pstr, NULL);
WMReleasePropList(pstr);
if (!wPreferences.flags.noclip) {
pstr = wClipSaveWorkspaceState(scr, i);
pstr = wClipSaveWorkspaceState(i);
WMPutInPLDictionary(wks_state, dClip, pstr);
WMReleasePropList(pstr);
} else if (old_wks_state != NULL) {