summary refs log tree commit diff
diff options
context:
space:
mode:
authoroga <oga>2009-08-24 17:04:39 +0000
committeroga <oga>2009-08-24 17:04:39 +0000
commite7f0d63413565065d6681acb5ca53654a473e126 (patch)
tree4cbc46d265d972f28c026edcbaa7f6823587e5b3
parent82911249e2a50b50ed19ebc12fe957d84e1ff1f2 (diff)
downloadcwm-e7f0d63413565065d6681acb5ca53654a473e126.tar.gz
cwm-e7f0d63413565065d6681acb5ca53654a473e126.tar.xz
cwm-e7f0d63413565065d6681acb5ca53654a473e126.zip
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.
-rw-r--r--client.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/client.c b/client.c
index 087a991..4ae84fd 100644
--- a/client.c
+++ b/client.c
@@ -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;