1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 05:18:06 +01:00

updated Makefiles files for po dirs

This commit is contained in:
kojima
2004-10-26 01:11:15 +00:00
parent b89f3e6df5
commit 087a16400f
5 changed files with 21 additions and 7 deletions

View File

@@ -432,7 +432,9 @@ WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, int workspace)
int width, height;
int iconsThatFitCount;
int count;
WMRect rect;
rect= wGetRectForHead(scr, wGetHeadForPointerLocation(scr));
memset(panel, 0, sizeof(WSwitchPanel));
panel->scr= scr;
@@ -449,7 +451,7 @@ WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, int workspace)
width= ICON_TILE_SIZE*count;
iconsThatFitCount= count;
if (width > WMScreenWidth(scr->wmscreen)) {
if (width > rect.size.width) {
iconsThatFitCount = (WMScreenWidth(scr->wmscreen)-SCREEN_BORDER_SPACING)/ICON_TILE_SIZE;
width= iconsThatFitCount*ICON_TILE_SIZE;
}