summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-22 02:28:03 +0000
committerDana Jansens <danakj@orodu.net>2007-05-22 02:28:03 +0000
commite97a443590f5cd7057796060a45dc17587e916e0 (patch)
tree95d249751830d5af8718290a77f2618249042acc
parent8f87a8af62c092617e7b5f4733d18ed11109f2ac (diff)
don't compare variables to themselves
-rw-r--r--openbox/client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/client.c b/openbox/client.c
index ce092aa8..68dfedce 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -937,10 +937,10 @@ gboolean client_find_onscreen(ObClient *self, gint *x, gint *y, gint w, gint h,
POINT_SET(newbl, newtl.x, newbr.y);
/* is it moving or just resizing from some corner? */
- stationary_l = oldtl.x == oldtl.x;
- stationary_r = oldtr.x == oldtr.x;
- stationary_t = oldtl.y == oldtl.y;
- stationary_b = oldbl.y == oldbl.y;
+ stationary_l = oldtl.x == newtl.x;
+ stationary_r = oldtr.x == newtr.x;
+ stationary_t = oldtl.y == newtl.y;
+ stationary_b = oldbl.y == newbl.y;
/* if left edge is growing and didnt move right edge */
if (stationary_r && newtl.x < oldtl.x)