From 2ca83f67137c41ecd7d2cc2742b79aa8b2d7c8a8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 17 May 2007 01:38:01 +0000 Subject: grab the pointer when windows move them selves so no enter events happen. i wonder if this will cause but reports. it still does for restacking though.. little cleanup in client.c, and remove client_configure macro which was now redundant --- openbox/moveresize.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'openbox/moveresize.c') diff --git a/openbox/moveresize.c b/openbox/moveresize.c index 837f3e92..8b31dbfa 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(moveresize_client, x, y, - (cancel ? start_cw : cur_x), - (cancel ? start_ch : cur_y), TRUE, TRUE); + client_configure_full(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(moveresize_client, cur_x, cur_y, - moveresize_client->area.width, - moveresize_client->area.height, TRUE, FALSE); + client_configure_full(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, @@ -375,7 +375,8 @@ static void do_resize() { gint x, y; get_resize_position(&x, &y, FALSE); - client_configure(moveresize_client, x, y, cur_x, cur_y, TRUE, FALSE); + client_configure_full(moveresize_client, + x, y, cur_x, cur_y, TRUE, FALSE); } /* this would be better with a fixed width font ... XXX can do it better -- cgit v1.2.3