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);
|
WMReleasePropList(dock_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wClipSaveState(WScreen *scr)
|
void wClipSaveState(void)
|
||||||
{
|
{
|
||||||
WMPropList *clip_state;
|
WMPropList *clip_state;
|
||||||
|
|
||||||
@@ -1566,7 +1566,7 @@ void wClipSaveState(WScreen *scr)
|
|||||||
WMReleasePropList(clip_state);
|
WMReleasePropList(clip_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
WMPropList *wClipSaveWorkspaceState(WScreen *scr, int workspace)
|
WMPropList *wClipSaveWorkspaceState(int workspace)
|
||||||
{
|
{
|
||||||
return dockSaveState(w_global.workspace.array[workspace]->clip);
|
return dockSaveState(w_global.workspace.array[workspace]->clip);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ int wDockReceiveDNDDrop(WScreen *scr, XEvent *event);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void wClipIconPaint(void);
|
void wClipIconPaint(void);
|
||||||
void wClipSaveState(WScreen *scr);
|
void wClipSaveState(void);
|
||||||
WMPropList *wClipSaveWorkspaceState(WScreen *scr, int workspace);
|
WMPropList *wClipSaveWorkspaceState(int workspace);
|
||||||
WAppIcon *wClipRestoreState(WScreen *scr, WMPropList *clip_state);
|
WAppIcon *wClipRestoreState(WScreen *scr, WMPropList *clip_state);
|
||||||
|
|
||||||
void wDrawerIconPaint(WAppIcon *dicon);
|
void wDrawerIconPaint(WAppIcon *dicon);
|
||||||
|
|||||||
@@ -866,7 +866,7 @@ void wScreenSaveState(WScreen * scr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!wPreferences.flags.noclip) {
|
if (!wPreferences.flags.noclip) {
|
||||||
wClipSaveState(scr);
|
wClipSaveState();
|
||||||
} else {
|
} else {
|
||||||
if ((foo = WMGetFromPLDictionary(old_state, dClip)) != NULL) {
|
if ((foo = WMGetFromPLDictionary(old_state, dClip)) != NULL) {
|
||||||
WMPutInPLDictionary(w_global.session_state, dClip, foo);
|
WMPutInPLDictionary(w_global.session_state, dClip, foo);
|
||||||
|
|||||||
@@ -812,7 +812,7 @@ void wWorkspaceSaveState(WScreen * scr, WMPropList * old_state)
|
|||||||
wks_state = WMCreatePLDictionary(dName, pstr, NULL);
|
wks_state = WMCreatePLDictionary(dName, pstr, NULL);
|
||||||
WMReleasePropList(pstr);
|
WMReleasePropList(pstr);
|
||||||
if (!wPreferences.flags.noclip) {
|
if (!wPreferences.flags.noclip) {
|
||||||
pstr = wClipSaveWorkspaceState(scr, i);
|
pstr = wClipSaveWorkspaceState(i);
|
||||||
WMPutInPLDictionary(wks_state, dClip, pstr);
|
WMPutInPLDictionary(wks_state, dClip, pstr);
|
||||||
WMReleasePropList(pstr);
|
WMReleasePropList(pstr);
|
||||||
} else if (old_wks_state != NULL) {
|
} else if (old_wks_state != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user