From eaa8d9a486ca6f90d7fd9b9dc765b297c0e91063 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 4 Apr 2008 10:36:28 +0200 Subject: [PATCH] [mouse] Place correctly window on resize Signed-off-by: Julien Danjou --- mouse.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mouse.c b/mouse.c index 1c395ca3..bfd65144 100644 --- a/mouse.c +++ b/mouse.c @@ -111,7 +111,7 @@ mouse_snapclient(Client *c, area_t geometry) } static void -mouse_resizebar_update(DrawCtx *ctx, style_t style, SimpleWindow *sw, area_t geometry, int border) +mouse_resizebar_draw(DrawCtx *ctx, style_t style, SimpleWindow *sw, area_t geometry, int border) { area_t draw_geometry = { 0, 0, ctx->width, ctx->height, NULL, NULL }; char size[64]; @@ -175,7 +175,7 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused))) sw->geometry.width, sw->geometry.height, sw->drawable); XMapRaised(globalconf.display, sw->window); - mouse_resizebar_update(ctx, style, sw, geometry, c->border); + mouse_resizebar_draw(ctx, style, sw, geometry, c->border); } for(;;) @@ -215,7 +215,7 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused))) client_resize(c, geometry, False); c->ismoving = False; if(sw) - mouse_resizebar_update(ctx, style, sw, c->geometry, c->border); + mouse_resizebar_draw(ctx, style, sw, c->geometry, c->border); } else { @@ -285,7 +285,7 @@ uicb_client_resizemouse(int screen, char *arg __attribute__ ((unused))) sw->geometry.width, sw->geometry.height, sw->drawable); XMapRaised(globalconf.display, sw->window); - mouse_resizebar_update(ctx, style, sw, geometry, c->border); + mouse_resizebar_draw(ctx, style, sw, c->geometry, c->border); } else if (layout->arrange == layout_tile || layout->arrange == layout_tileleft || layout->arrange == layout_tilebottom || layout->arrange == layout_tiletop) @@ -359,7 +359,7 @@ uicb_client_resizemouse(int screen, char *arg __attribute__ ((unused))) geometry.y = c->geometry.y; client_resize(c, geometry, True); if(sw) - mouse_resizebar_update(ctx, style, sw, c->geometry, c->border); + mouse_resizebar_draw(ctx, style, sw, c->geometry, c->border); } else if(layout->arrange == layout_tile || layout->arrange == layout_tileleft || layout->arrange == layout_tiletop || layout->arrange == layout_tilebottom)