backwardsness
authorDana Jansens <danakj@orodu.net>
Wed, 11 Jul 2007 01:28:14 +0000 (01:28 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 11 Jul 2007 01:28:14 +0000 (01:28 +0000)
openbox/moveresize.c

index 81e7cb0..59c1b1b 100644 (file)
@@ -716,7 +716,7 @@ gboolean moveresize_event(XEvent *e)
                 lockcorner = OB_CORNER_BOTTOMRIGHT;
             } else if (corner == prop_atoms.net_wm_moveresize_size_top) {
                 dw = 0;
-                dh = (e->xmotion.y_root - start_y);
+                dh = -(e->xmotion.y_root - start_y);
                 lockcorner = OB_CORNER_BOTTOMRIGHT;
             } else if (corner == prop_atoms.net_wm_moveresize_size_topright) {
                 dw = (e->xmotion.x_root - start_x);