diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-17 06:21:19 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-17 06:21:19 +0000 |
| commit | c4138c0cdedf2085d4e26804d19868512502d904 (patch) | |
| tree | c4a816dd7327c8784b4ed97f37f4d4c0fcd59113 | |
| parent | 25ffe6b566379f25dd3cf7e74aeefd084b7e1b19 (diff) | |
initialize start_x/y
| -rw-r--r-- | openbox/moveresize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c index 2bee161e..7af3fa3e 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -70,6 +70,8 @@ void moveresize_start(Client *c, int x, int y, guint b, guint32 cnr) start_cy = c->frame->area.y; start_cw = c->area.width; start_ch = c->area.height; + start_x = x; + start_y = y; if (corner == prop_atoms.net_wm_moveresize_move_keyboard || corner == prop_atoms.net_wm_moveresize_size_keyboard) button = 0; /* mouse can't end it without being pressed first */ @@ -188,7 +190,6 @@ void moveresize_event(XEvent *e) if (moving) { cur_x = start_cx + e->xmotion.x_root - start_x; cur_y = start_cy + e->xmotion.y_root - start_y; - do_move(); } else { if (corner == prop_atoms.net_wm_moveresize_size_topleft) { |
