From 4ab2deedeb800d2e9ab96b2153261c520bec2de5 Mon Sep 17 00:00:00 2001 From: oga Date: Mon, 24 Aug 2009 17:04:39 +0000 Subject: instead of checking for flags in the client context, then removing them. e.g.: if (flags & flags_we_care_about) flags &= ~(flags_we_care_about); just whack the flags unconditionally, it's simpler. okan@ agrees. --- client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index 531bff8..03b898a 100644 --- a/client.c +++ b/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: client.c,v 1.57 2009/06/26 12:21:58 okan Exp $ + * $Id: client.c,v 1.58 2009/08/24 17:04:39 oga Exp $ */ #include "headers.h" @@ -302,8 +302,7 @@ calc: void client_resize(struct client_ctx *cc) { - if (cc->flags & (CLIENT_MAXIMIZED | CLIENT_VMAXIMIZED)) - cc->flags &= ~(CLIENT_MAXIMIZED | CLIENT_VMAXIMIZED); + cc->flags &= ~(CLIENT_MAXIMIZED | CLIENT_VMAXIMIZED); if (cc->flags & CLIENT_DOMAXIMIZE) { cc->flags &= ~CLIENT_DOMAXIMIZE; -- cgit v1.2.3-2-gb3c3