commit 76c3e814ecdbb92c52514fb63a4ccb15d5300625
parent 45507b607cba60292310e06ffd83d737d37da52e
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Wed, 31 May 2006 10:32:27 +0200
removed 5 unnecessary lines
Diffstat:
3 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/cmd/wm/event.c b/cmd/wm/event.c
@@ -98,13 +98,10 @@ handle_buttonpress(XEvent *e)
focus(c, True);
switch(ev->button) {
case Button1:
- do_mouse_move(c);
+ do_mouse_resize(c, CENTER);
break;
case Button3:
- {
- BlitzAlign align = blitz_quadofcoord(&c->rect, ev->x, ev->y);
- do_mouse_resize(c, align);
- }
+ do_mouse_resize(c, blitz_quadofcoord(&c->rect, ev->x, ev->y));
default:
break;
}
diff --git a/cmd/wm/mouse.c b/cmd/wm/mouse.c
@@ -116,12 +116,6 @@ draw_xor_border(XRectangle *r)
}
void
-do_mouse_move(Client *c)
-{
- do_mouse_resize(c, CENTER);
-}
-
-void
do_mouse_resize(Client *c, BlitzAlign align)
{
int px = 0, py = 0, i, ox, oy;
diff --git a/cmd/wm/wm.h b/cmd/wm/wm.h
@@ -297,7 +297,6 @@ unsigned long mod_key_of_str(char *val);
/* mouse.c */
void do_mouse_resize(Client *c,BlitzAlign align);
-void do_mouse_move(Client *c);
void grab_mouse(Window w, unsigned long mod, unsigned int button);
void ungrab_mouse(Window w, unsigned long mod, unsigned int button);
void snap_rect(XRectangle *rects, int num, XRectangle *current,