From 43139ed3734c11c858f92f1c2cc7ed4cdba169cb Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 17 Apr 2003 16:18:34 +0000 Subject: add the left/right/top/bottom direction arrows and use them for resizing those ways --- openbox/moveresize.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'openbox/moveresize.c') diff --git a/openbox/moveresize.c b/openbox/moveresize.c index 77311804..2c9f0cdf 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -95,19 +95,19 @@ void moveresize_start(Client *c, int x, int y, guint b, guint32 cnr) if (corner == prop_atoms.net_wm_moveresize_size_topleft) cur = ob_cursors.tl; else if (corner == prop_atoms.net_wm_moveresize_size_top) - cur = ob_cursors.tl; + cur = ob_cursors.t; else if (corner == prop_atoms.net_wm_moveresize_size_topright) cur = ob_cursors.tr; else if (corner == prop_atoms.net_wm_moveresize_size_right) - cur = ob_cursors.tr; + cur = ob_cursors.r; else if (corner == prop_atoms.net_wm_moveresize_size_bottomright) cur = ob_cursors.br; else if (corner == prop_atoms.net_wm_moveresize_size_bottom) - cur = ob_cursors.br; + cur = ob_cursors.b; else if (corner == prop_atoms.net_wm_moveresize_size_bottomleft) cur = ob_cursors.bl; else if (corner == prop_atoms.net_wm_moveresize_size_left) - cur = ob_cursors.bl; + cur = ob_cursors.l; else if (corner == prop_atoms.net_wm_moveresize_size_keyboard) cur = ob_cursors.br; else if (corner == prop_atoms.net_wm_moveresize_move) @@ -183,7 +183,7 @@ void moveresize_event(XEvent *e) button = e->xbutton.button; /* this will end it now */ } } else if (e->type == ButtonRelease) { - if (e->xbutton.button == button) { + if (!button || e->xbutton.button == button) { end_moveresize(FALSE); } } else if (e->type == MotionNotify) { -- cgit v1.2.3