From bf043cd2bde20ced01944867b8996167d7fb2161 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 10 Sep 2009 18:48:16 +0200 Subject: [PATCH] =?utf8?q?Some=20little=20style=20adjustments=20for=20badb?= =?utf8?q?oy=E2=80=99s=20patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/commands.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/commands.c b/src/commands.c index e8a71ac9..ef400a43 100644 --- a/src/commands.c +++ b/src/commands.c @@ -909,19 +909,16 @@ void parse_command(xcb_connection_t *conn, const char *command) { return; } - char com; + char com = command[1]; if (command[1] == 't') { if (last_focused->titlebar_position == TITLEBAR_TOP && - last_focused->borderless == false) + !last_focused->borderless) com = 'p'; else if (last_focused->titlebar_position == TITLEBAR_OFF && - last_focused->borderless == false) + !last_focused->borderless) com = 'b'; - else - com = 'n'; + else com = 'n'; } - else - com = command[1]; client_change_border(conn, last_focused, com); return; -- 2.39.5