forked from e16/e16
1
0
Fork 0

Show dragbars on startup windows also when dragbar is disabled.

SVN revision: 43166
This commit is contained in:
Kim Woelders 2009-10-20 16:48:02 +00:00
parent 514398da4e
commit 11b7a49cc9
1 changed files with 8 additions and 5 deletions

View File

@ -38,7 +38,7 @@ StartupWindowsCreate(void)
Win w1, w2, win1, win2, b1, b2; Win w1, w2, win1, win2, b1, b2;
Background *bg; Background *bg;
ImageClass *ic; ImageClass *ic;
int x, y, bx, by, bw, bh; int x, y, bx, by, bw, bh, dbw;
EObj *eo; EObj *eo;
/* Acting only as boolean? */ /* Acting only as boolean? */
@ -52,13 +52,16 @@ StartupWindowsCreate(void)
if (!ic || !bg) if (!ic || !bg)
return; return;
dbw = Conf.desks.dragbar_width;
if (dbw <= 0)
dbw = 16;
if (bg_sideways) if (bg_sideways)
{ {
x = WinGetW(VROOT) / 2; x = WinGetW(VROOT) / 2;
y = 0; y = 0;
bx = WinGetW(VROOT) - Conf.desks.dragbar_width; bx = WinGetW(VROOT) - dbw;
by = 0; by = 0;
bw = Conf.desks.dragbar_width; bw = dbw;
bh = WinGetH(VROOT); bh = WinGetH(VROOT);
} }
else else
@ -66,9 +69,9 @@ StartupWindowsCreate(void)
x = 0; x = 0;
y = WinGetH(VROOT) / 2; y = WinGetH(VROOT) / 2;
bx = 0; bx = 0;
by = WinGetH(VROOT) - Conf.desks.dragbar_width; by = WinGetH(VROOT) - dbw;
bw = WinGetW(VROOT); bw = WinGetW(VROOT);
bh = Conf.desks.dragbar_width; bh = dbw;
} }
eo = EobjWindowCreate(EOBJ_TYPE_MISC, eo = EobjWindowCreate(EOBJ_TYPE_MISC,