mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
Removed block in restore_icon_state
The block inside restore_icon_state is not needed, so can be removed. There are no changes with or without the block (variables scope,...).
This commit is contained in:
committed by
Carlos R. Mafra
parent
a089647d27
commit
e988386013
@@ -1343,6 +1343,7 @@ static WAppIcon *restore_icon_state(WScreen *scr, WMPropList *info, int type, in
|
|||||||
{
|
{
|
||||||
WAppIcon *aicon;
|
WAppIcon *aicon;
|
||||||
WMPropList *cmd, *value;
|
WMPropList *cmd, *value;
|
||||||
|
char *wclass, *winstance, *command;
|
||||||
|
|
||||||
cmd = WMGetFromPLDictionary(info, dCommand);
|
cmd = WMGetFromPLDictionary(info, dCommand);
|
||||||
if (!cmd || !WMIsPLString(cmd))
|
if (!cmd || !WMIsPLString(cmd))
|
||||||
@@ -1353,17 +1354,12 @@ static WAppIcon *restore_icon_state(WScreen *scr, WMPropList *info, int type, in
|
|||||||
if (!value)
|
if (!value)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
{
|
|
||||||
char *wclass, *winstance;
|
|
||||||
char *command;
|
|
||||||
|
|
||||||
ParseWindowName(value, &winstance, &wclass, "dock");
|
ParseWindowName(value, &winstance, &wclass, "dock");
|
||||||
|
|
||||||
if (!winstance && !wclass)
|
if (!winstance && !wclass)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* get commands */
|
/* get commands */
|
||||||
|
|
||||||
if (cmd)
|
if (cmd)
|
||||||
command = wstrdup(WMGetFromPLString(cmd));
|
command = wstrdup(WMGetFromPLString(cmd));
|
||||||
else
|
else
|
||||||
@@ -1387,7 +1383,6 @@ static WAppIcon *restore_icon_state(WScreen *scr, WMPropList *info, int type, in
|
|||||||
wfree(winstance);
|
wfree(winstance);
|
||||||
if (command)
|
if (command)
|
||||||
wfree(command);
|
wfree(command);
|
||||||
}
|
|
||||||
|
|
||||||
aicon->icon->core->descriptor.handle_mousedown = iconMouseDown;
|
aicon->icon->core->descriptor.handle_mousedown = iconMouseDown;
|
||||||
if (type == WM_CLIP) {
|
if (type == WM_CLIP) {
|
||||||
|
|||||||
Reference in New Issue
Block a user