mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
wDockAttachIcon icon_editing is common in if else
The line "icon_editing = 0" is the first line in the "if" sentence and the first (and only) sentence in the "else" block, so can be moved outside the if-else (and the empty else block can be removed).
This commit is contained in:
committed by
Carlos R. Mafra
parent
b657f15344
commit
6bc48464e9
@@ -1854,11 +1854,11 @@ Bool wDockAttachIcon(WDock *dock, WAppIcon *icon, int x, int y)
|
|||||||
int index;
|
int index;
|
||||||
|
|
||||||
wwin = icon->icon->owner;
|
wwin = icon->icon->owner;
|
||||||
|
icon->editing = 0;
|
||||||
|
|
||||||
if (icon->command == NULL) {
|
if (icon->command == NULL) {
|
||||||
char *command;
|
char *command;
|
||||||
|
|
||||||
icon->editing = 0;
|
|
||||||
|
|
||||||
command = GetCommandForWindow(wwin->client_win);
|
command = GetCommandForWindow(wwin->client_win);
|
||||||
if (command) {
|
if (command) {
|
||||||
icon->command = command;
|
icon->command = command;
|
||||||
@@ -1893,8 +1893,6 @@ Bool wDockAttachIcon(WDock *dock, WAppIcon *icon, int x, int y)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
icon->editing = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (index = 1; index < dock->max_icons; index++)
|
for (index = 1; index < dock->max_icons; index++)
|
||||||
|
|||||||
Reference in New Issue
Block a user