From c9450c6fbd115bc9526e13649eff08e74f8af510 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 15 Mar 2008 14:59:28 +0100 Subject: [PATCH] Remove switch/case for sw creation of titlebar, useless --- client.c | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/client.c b/client.c index 31b00d60..13c3efa9 100644 --- a/client.c +++ b/client.c @@ -374,25 +374,15 @@ client_manage(Window w, XWindowAttributes *wa, int screen) 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: + 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; break; }