1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

fixed bug with bag sorting

fixed bug with stacking code
This commit is contained in:
kojima
2000-03-30 02:52:07 +00:00
parent 15734b9147
commit f65c549814
36 changed files with 5665 additions and 520 deletions

View File

@@ -533,7 +533,7 @@ removeIconsCallback(WMenu *menu, WMenuEntry *entry)
WAppIcon *aicon;
WMBag *selectedIcons;
int keepit;
int i;
WMBagIterator it;
assert(clickedIcon!=NULL);
@@ -556,8 +556,7 @@ removeIconsCallback(WMenu *menu, WMenuEntry *entry)
WMPutInBag(selectedIcons, clickedIcon);
}
for (i = 0; i < WMGetBagItemCount(selectedIcons); i++) {
aicon = WMGetFromBag(selectedIcons, i);
WM_ITERATE_BAG(selectedIcons, aicon, it) {
keepit = aicon->running && wApplicationOf(aicon->main_window);
wDockDetach(dock, aicon);
if (keepit) {
@@ -582,7 +581,7 @@ keepIconsCallback(WMenu *menu, WMenuEntry *entry)
WDock *dock;
WAppIcon *aicon;
WMBag *selectedIcons;
int i;
WMBagIterator it;
assert(clickedIcon!=NULL);
dock = clickedIcon->dock;
@@ -617,8 +616,7 @@ keepIconsCallback(WMenu *menu, WMenuEntry *entry)
WMPutInBag(selectedIcons, clickedIcon);
}
for (i = 0; i < WMGetBagItemCount(selectedIcons); i++) {
aicon = WMGetFromBag(selectedIcons, i);
WM_ITERATE_BAG(selectedIcons, aicon, it) {
if (aicon->icon->selected)
wIconSelect(aicon->icon);
if (aicon && aicon->attracted && aicon->command) {