[mouse] Place correctly window on resize
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
10903a3cb5
commit
eaa8d9a486
10
mouse.c
10
mouse.c
|
@ -111,7 +111,7 @@ mouse_snapclient(Client *c, area_t geometry)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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 };
|
area_t draw_geometry = { 0, 0, ctx->width, ctx->height, NULL, NULL };
|
||||||
char size[64];
|
char size[64];
|
||||||
|
@ -175,7 +175,7 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
|
||||||
sw->geometry.width, sw->geometry.height,
|
sw->geometry.width, sw->geometry.height,
|
||||||
sw->drawable);
|
sw->drawable);
|
||||||
XMapRaised(globalconf.display, sw->window);
|
XMapRaised(globalconf.display, sw->window);
|
||||||
mouse_resizebar_update(ctx, style, sw, geometry, c->border);
|
mouse_resizebar_draw(ctx, style, sw, geometry, c->border);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
|
@ -215,7 +215,7 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
|
||||||
client_resize(c, geometry, False);
|
client_resize(c, geometry, False);
|
||||||
c->ismoving = False;
|
c->ismoving = False;
|
||||||
if(sw)
|
if(sw)
|
||||||
mouse_resizebar_update(ctx, style, sw, c->geometry, c->border);
|
mouse_resizebar_draw(ctx, style, sw, c->geometry, c->border);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -285,7 +285,7 @@ uicb_client_resizemouse(int screen, char *arg __attribute__ ((unused)))
|
||||||
sw->geometry.width, sw->geometry.height,
|
sw->geometry.width, sw->geometry.height,
|
||||||
sw->drawable);
|
sw->drawable);
|
||||||
XMapRaised(globalconf.display, sw->window);
|
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
|
else if (layout->arrange == layout_tile || layout->arrange == layout_tileleft
|
||||||
|| layout->arrange == layout_tilebottom || layout->arrange == layout_tiletop)
|
|| 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;
|
geometry.y = c->geometry.y;
|
||||||
client_resize(c, geometry, True);
|
client_resize(c, geometry, True);
|
||||||
if(sw)
|
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
|
else if(layout->arrange == layout_tile || layout->arrange == layout_tileleft
|
||||||
|| layout->arrange == layout_tiletop || layout->arrange == layout_tilebottom)
|
|| layout->arrange == layout_tiletop || layout->arrange == layout_tilebottom)
|
||||||
|
|
Loading…
Reference in New Issue