aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authoroga2009-08-24 17:04:39 +0000
committeroga2009-08-24 17:04:39 +0000
commit4ab2deedeb800d2e9ab96b2153261c520bec2de5 (patch)
treed4c48755af455ffc52e4811cc529ec489c4784be /client.c
parent72272c308d181220ad2e0e711c464aa5811c5818 (diff)
downloadcwm-4ab2deedeb800d2e9ab96b2153261c520bec2de5.tar.gz
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.
Diffstat (limited to 'client.c')
-rw-r--r--client.c5
1 files 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;