initialize start_x/y
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
openbox/moveresize.c
→
openbox/moveresize.c
@@ -70,6 +70,8 @@ start_cx = c->frame->area.x;
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 @@ } else if (e->type == MotionNotify) {
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) {