aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAntonin Décimo <antonin.decimo@gmail.com>2019-08-09 15:41:51 +0200
committerDrew DeVault <sir@cmpwn.com>2019-08-12 09:37:21 +0900
commitb400c26b236bdd462daabc88f44ee98720a1693c (patch)
tree4adcdd5afcc12cd22b1a759eec18a022a836f43d /util
parent3fc977d7dad2822c15a0d4171bb3c237d62e1e0d (diff)
Simplify check
Diffstat (limited to 'util')
-rw-r--r--util/region.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/region.c b/util/region.c
index 61f9c7c7..a652dbf8 100644
--- a/util/region.c
+++ b/util/region.c
@@ -218,7 +218,7 @@ static void region_confine(pixman_region32_t *region, double x1, double y1, doub
bool bordering_x = x == box.x1 || x == box.x2 - 1;
bool bordering_y = y == box.y1 || y == box.y2 - 1;
- if ((bordering_x && bordering_y) || (!bordering_x && !bordering_y)) {
+ if (bordering_x == bordering_y) {
double x2_potential, y2_potential;
double tmp1, tmp2;
region_confine(region, x, y, x, y2, &tmp1, &y2_potential, box);