From 644c10aa68a6a699f6d62e22a10ae43b2764e9ce Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sat, 8 Nov 2008 23:31:39 +0100 Subject: [PATCH] layout: Fix togglemax --- src/layout.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/layout.c b/src/layout.c index 1c6a454..6677214 100644 --- a/src/layout.c +++ b/src/layout.c @@ -433,8 +433,7 @@ uicb_tile_switch(uicb_t cmd) if(!sel || sel->hint || !sel->tile) return; if((c = sel) == nexttiled(clients)) - if(!(c = nexttiled(c->next))) - return; + CHECK((c = nexttiled(c->next))); client_detach(c); client_attach(c); client_focus(c); @@ -458,8 +457,8 @@ uicb_togglemax(uicb_t cmd) sel->ogeo.height = sel->geo.height; geo.x = sgeo.x; geo.y = sgeo.y; - geo.width = sgeo.width - (sel->border * 2); - geo.height = sgeo.height - (sel->border * 2); + geo.width = sgeo.width - BORDH * 2; + geo.height = sgeo.height - BORDH * 2; client_moveresize(sel, geo, False); client_raise(sel);