Remove switch/case for sw creation of titlebar, useless

This commit is contained in:
Julien Danjou 2008-03-15 14:59:28 +01:00
parent eb595fe06e
commit c9450c6fbd
1 changed files with 8 additions and 18 deletions

View File

@ -374,25 +374,15 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
switch(c->titlebar.position) switch(c->titlebar.position)
{ {
case Top:
c->titlebar.sw = simplewindow_new(globalconf.display,
phys_screen,
c->geometry.x,
c->geometry.y - titlebar_height,
c->geometry.width + 2 * c->border,
titlebar_height,
0);
break;
case Bottom:
c->titlebar.sw = simplewindow_new(globalconf.display,
phys_screen,
c->geometry.x,
c->geometry.y + c->geometry.height,
c->geometry.width + 2 * c->border,
titlebar_height,
0);
break;
default: default:
c->titlebar.sw = simplewindow_new(globalconf.display,
phys_screen, 0, 0,
c->geometry.width + 2 * c->border,
titlebar_height,
0);
break;
case Auto:
case Off:
c->titlebar.position = Off; c->titlebar.position = Off;
break; break;
} }