From: Christophe CURIS <[email protected]>

Now that the workspace are not more attached to a screen, the
parameter is not needed anymore.
---
 src/dock.c      | 4 ++--
 src/dock.h      | 4 ++--
 src/screen.c    | 2 +-
 src/workspace.c | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/dock.c b/src/dock.c
index a6b4d99..2385700 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -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);
 }
diff --git a/src/dock.h b/src/dock.h
index 9ac4d20..e7dd2c2 100644
--- a/src/dock.h
+++ b/src/dock.h
@@ -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);
diff --git a/src/screen.c b/src/screen.c
index c1fa714..72a7dc5 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -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);
diff --git a/src/workspace.c b/src/workspace.c
index 405aaa1..5cf3863 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -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) {
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to