X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmoveresize.c;h=c55b88e1504249f660afa2581d79e4b3dd15b747;hb=7d164842e0d0c3138401fad0dafc6f21bba0a04f;hp=8b31dbfa2847b8851b4339ebe9a0675b7a84f2b2;hpb=2ca83f67137c41ecd7d2cc2742b79aa8b2d7c8a8;p=chaz%2Fopenbox diff --git a/openbox/moveresize.c b/openbox/moveresize.c index 8b31dbfa..c55b88e1 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -295,9 +295,9 @@ void moveresize_end(gboolean cancel) #endif get_resize_position(&x, &y, cancel); - client_configure_full(moveresize_client, x, y, - (cancel ? start_cw : cur_x), - (cancel ? start_ch : cur_y), TRUE, TRUE); + client_configure(moveresize_client, x, y, + (cancel ? start_cw : cur_x), + (cancel ? start_ch : cur_y), TRUE, TRUE); } moveresize_in_progress = FALSE; @@ -314,9 +314,9 @@ static void do_move(gboolean keyboard) if (!keyboard) resist = config_resist_edge; resist_move_monitors(moveresize_client, resist, &cur_x, &cur_y); - client_configure_full(moveresize_client, cur_x, cur_y, - moveresize_client->area.width, - moveresize_client->area.height, TRUE, FALSE); + client_configure(moveresize_client, cur_x, cur_y, + moveresize_client->area.width, + moveresize_client->area.height, TRUE, FALSE); if (config_resize_popup_show == 2) /* == "Always" */ popup_coords(moveresize_client, "%d x %d", moveresize_client->frame->area.x, @@ -325,31 +325,32 @@ static void do_move(gboolean keyboard) static void do_resize() { + gint x, y, w, h, lw, lh; + + /* see if it is actually going to resize */ + x = 0; + y = 0; + w = cur_x; + h = cur_y; + client_try_configure(moveresize_client, &x, &y, &w, &h, + &lw, &lh, TRUE); + if (w == moveresize_client->area.width && + h == moveresize_client->area.height) + { + return; + } + #ifdef SYNC if (config_resize_redraw && extensions_sync && moveresize_client->sync_request && moveresize_client->sync_counter) { XEvent ce; XSyncValue val; - gint x, y, w, h, lw, lh; /* are we already waiting for the sync counter to catch up? */ if (waiting_for_sync) return; - /* see if it is actually going to resize */ - x = 0; - y = 0; - w = cur_x; - h = cur_y; - client_try_configure(moveresize_client, &x, &y, &w, &h, - &lw, &lh, TRUE); - if (w == moveresize_client->area.width && - h == moveresize_client->area.height) - { - return; - } - /* increment the value we're waiting for */ ++moveresize_client->sync_counter_value; XSyncIntToValue(&val, moveresize_client->sync_counter_value); @@ -372,12 +373,8 @@ static void do_resize() } #endif - { - gint x, y; - get_resize_position(&x, &y, FALSE); - client_configure_full(moveresize_client, - x, y, cur_x, cur_y, TRUE, FALSE); - } + get_resize_position(&x, &y, FALSE); + client_configure(moveresize_client, x, y, cur_x, cur_y, TRUE, FALSE); /* this would be better with a fixed width font ... XXX can do it better if there are 2 text boxes */