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