X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmoveresize.c;h=08d96ad61d7251e984f86105cf1564ffc6d14d13;hb=5888e7ed4b7a6499f80ea4d4c6f10b16f99243a5;hp=989e384335bb2df0370005b8a9c9300fa506f4f3;hpb=077cd7f94440a5001d62a2df03131a2c33a8c3e2;p=chaz%2Fopenbox diff --git a/openbox/moveresize.c b/openbox/moveresize.c index 989e3843..08d96ad6 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -130,8 +130,6 @@ void moveresize_end(gboolean cancel) XDestroyWindow(ob_display, coords); coords = None; - moveresize_in_progress = FALSE; - if (moving) { client_configure(moveresize_client, Corner_TopLeft, (cancel ? start_cx : cur_x), @@ -144,18 +142,22 @@ void moveresize_end(gboolean cancel) (cancel ? start_cw : cur_x), (cancel ? start_ch : cur_y), TRUE, TRUE); } + + moveresize_in_progress = FALSE; + moveresize_client = NULL; } static void do_move() { dispatch_move(moveresize_client, &cur_x, &cur_y); - popup_coords("X: %d Y: %d", cur_x, cur_y); - /* get where the client should be */ frame_frame_gravity(moveresize_client->frame, &cur_x, &cur_y); client_configure(moveresize_client, Corner_TopLeft, cur_x, cur_y, start_cw, start_ch, TRUE, FALSE); + + popup_coords("X: %d Y: %d", moveresize_client->frame->area.x, + moveresize_client->frame->area.y); } static void do_resize()