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

bug fixes

This commit is contained in:
kojima
1999-04-27 01:38:09 +00:00
parent d3609d3449
commit a205d1f5c2
21 changed files with 2781 additions and 1906 deletions

View File

@@ -102,12 +102,12 @@ OpenSwitchMenu(WScreen *scr, int x, int y, int keyboard)
if (keyboard)
wMenuMapAt(switchmenu, 0, 0, True);
else
wMenuMapCopyAt(switchmenu, x-switchmenu->frame->core->width/2,
y-switchmenu->frame->top_width/2);
wMenuMapCopyAt(switchmenu,
x-switchmenu->frame->core->width/2, y);
}
} else {
wMenuMapAt(switchmenu, x-switchmenu->frame->core->width/2,
y-switchmenu->frame->top_width/2, keyboard);
wMenuMapAt(switchmenu, x-switchmenu->frame->core->width/2, y,
keyboard);
}
return;
}
@@ -125,8 +125,8 @@ OpenSwitchMenu(WScreen *scr, int x, int y, int keyboard)
if (switchmenu) {
if (!switchmenu->flags.realized)
wMenuRealize(switchmenu);
wMenuMapAt(switchmenu, x-switchmenu->frame->core->width/2,
y-switchmenu->frame->top_width/2, keyboard);
wMenuMapAt(switchmenu, x-switchmenu->frame->core->width/2, y,
keyboard);
}
}