diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2014-09-15 13:00:50 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2014-09-15 13:00:50 +0000 |
commit | e2421c8bb2147c963d931b9a8e24331e70986e08 (patch) | |
tree | eead3e2b18d8314b11711c25a8541c97393181c5 | |
parent | af23a9b08ac96dac534c21aecfe9b2173153845c (diff) |
use similiar style for client flags
-rw-r--r-- | app/cwm/client.c | 10 | ||||
-rw-r--r-- | app/cwm/search.c | 4 | ||||
-rw-r--r-- | app/cwm/xevents.c | 4 | ||||
-rw-r--r-- | app/cwm/xutil.c | 4 |
4 files changed, 11 insertions, 11 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c index 1f5c0b61c..64a76227d 100644 --- a/app/cwm/client.c +++ b/app/cwm/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. * - * $OpenBSD: client.c,v 1.182 2014/09/10 20:30:38 okan Exp $ + * $OpenBSD: client.c,v 1.183 2014/09/15 13:00:49 okan Exp $ */ #include <sys/param.h> @@ -187,7 +187,7 @@ client_setactive(struct client_ctx *cc) XInstallColormap(X_Dpy, cc->colormap); if ((cc->flags & CLIENT_INPUT) || - ((cc->flags & CLIENT_WM_TAKE_FOCUS) == 0)) { + (!(cc->flags & CLIENT_WM_TAKE_FOCUS))) { XSetInputFocus(X_Dpy, cc->win, RevertToPointerRoot, CurrentTime); } @@ -260,7 +260,7 @@ client_fullscreen(struct client_ctx *cc) !(cc->flags & CLIENT_FULLSCREEN)) return; - if ((cc->flags & CLIENT_FULLSCREEN)) { + if (cc->flags & CLIENT_FULLSCREEN) { cc->bwidth = Conf.bwidth; cc->geom = cc->fullgeom; cc->flags &= ~(CLIENT_FULLSCREEN | CLIENT_FREEZE); @@ -297,12 +297,12 @@ client_maximize(struct client_ctx *cc) goto resize; } - if ((cc->flags & CLIENT_VMAXIMIZED) == 0) { + if (!(cc->flags & CLIENT_VMAXIMIZED)) { cc->savegeom.h = cc->geom.h; cc->savegeom.y = cc->geom.y; } - if ((cc->flags & CLIENT_HMAXIMIZED) == 0) { + if (!(cc->flags & CLIENT_HMAXIMIZED)) { cc->savegeom.w = cc->geom.w; cc->savegeom.x = cc->geom.x; } diff --git a/app/cwm/search.c b/app/cwm/search.c index 1c3f22a9f..7e55a51cb 100644 --- a/app/cwm/search.c +++ b/app/cwm/search.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. * - * $OpenBSD: search.c,v 1.40 2014/09/07 19:27:30 okan Exp $ + * $OpenBSD: search.c,v 1.41 2014/09/15 13:00:49 okan Exp $ */ #include <sys/param.h> @@ -102,7 +102,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search) tier++; /* Clients that are hidden get ranked one up. */ - if (cc->flags & CLIENT_HIDDEN && tier > 0) + if ((cc->flags & CLIENT_HIDDEN) && (tier > 0)) tier--; assert(tier < nitems(tierp)); diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c index ce2b4a646..62cfea128 100644 --- a/app/cwm/xevents.c +++ b/app/cwm/xevents.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. * - * $OpenBSD: xevents.c,v 1.113 2014/09/07 17:38:38 okan Exp $ + * $OpenBSD: xevents.c,v 1.114 2014/09/15 13:00:49 okan Exp $ */ /* @@ -82,7 +82,7 @@ xev_handle_maprequest(XEvent *ee) if ((cc = client_find(e->window)) == NULL) cc = client_init(e->window, NULL); - if ((cc != NULL) && ((cc->flags & CLIENT_IGNORE) == 0)) + if ((cc != NULL) && (!(cc->flags & CLIENT_IGNORE))) client_ptrwarp(cc); } diff --git a/app/cwm/xutil.c b/app/cwm/xutil.c index 6c426a9fd..6eb2b17d7 100644 --- a/app/cwm/xutil.c +++ b/app/cwm/xutil.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. * - * $OpenBSD: xutil.c,v 1.92 2014/09/08 20:11:22 okan Exp $ + * $OpenBSD: xutil.c,v 1.93 2014/09/15 13:00:49 okan Exp $ */ #include <sys/param.h> @@ -393,7 +393,7 @@ xu_ewmh_handle_net_wm_state_msg(struct client_ctx *cc, int action, continue; switch (action) { case _NET_WM_STATE_ADD: - if ((cc->flags & handlers[i].property) == 0) + if (!(cc->flags & handlers[i].property)) handlers[i].toggle(cc); break; case _NET_WM_STATE_REMOVE: |