diff options
author | oga | 2009-08-24 17:04:39 +0000 |
---|---|---|
committer | oga | 2009-08-24 17:04:39 +0000 |
commit | 4ab2deedeb800d2e9ab96b2153261c520bec2de5 (patch) | |
tree | d4c48755af455ffc52e4811cc529ec489c4784be | |
parent | 72272c308d181220ad2e0e711c464aa5811c5818 (diff) | |
download | cwm-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.
-rw-r--r-- | client.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |