diff options
author | okan | 2015-07-01 14:36:42 +0000 |
---|---|---|
committer | okan | 2015-07-01 14:36:42 +0000 |
commit | 066f93f7719e2667a64ac983db612410d7d55916 (patch) | |
tree | a0aa622a7729e65c52ced8e11522b8adf2c9dda7 /mousefunc.c | |
parent | 9249ec4a404cccff818bffa4430d447515184f1a (diff) | |
download | cwm-066f93f7719e2667a64ac983db612410d7d55916.tar.gz |
style
Diffstat (limited to '')
-rw-r--r-- | mousefunc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mousefunc.c b/mousefunc.c index 20a022f..34c347f 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.94 2015/06/30 19:02:24 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.95 2015/07/01 14:36:42 okan Exp $ */ #include <sys/types.h> @@ -43,8 +43,8 @@ mousefunc_sweep_calc(struct client_ctx *cc, int x, int y, int mx, int my) client_applysizehints(cc); - cc->geom.x = x <= mx ? x : x - cc->geom.w; - cc->geom.y = y <= my ? y : y - cc->geom.h; + cc->geom.x = (x <= mx) ? x : x - cc->geom.w; + cc->geom.y = (y <= my) ? y : y - cc->geom.h; } static void @@ -183,7 +183,7 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg) if (group_holds_only_sticky(gc)) continue; menuq_add(&menuq, gc, - group_holds_only_hidden(gc) ? "%d: [%s]" : "%d: %s", + (group_holds_only_hidden(gc)) ? "%d: [%s]" : "%d: %s", gc->num, gc->name); } |