mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
[placement] Cosmetic
This commit is contained in:
parent
dba40b0ca4
commit
80febe70a8
1 changed files with 8 additions and 8 deletions
16
placement.c
16
placement.c
|
@ -131,18 +131,18 @@ placement_smart(Client *c)
|
||||||
area_t
|
area_t
|
||||||
placement_under_mouse(Client *c)
|
placement_under_mouse(Client *c)
|
||||||
{
|
{
|
||||||
xcb_query_pointer_reply_t *xqp;
|
xcb_query_pointer_cookie_t qp_c;
|
||||||
|
xcb_query_pointer_reply_t *qp_r;
|
||||||
area_t finalgeometry = c->f_geometry;
|
area_t finalgeometry = c->f_geometry;
|
||||||
|
|
||||||
if((xqp = xcb_query_pointer_reply(globalconf.connection,
|
qp_c = xcb_query_pointer(globalconf.connection,
|
||||||
xcb_query_pointer(globalconf.connection,
|
xcb_aux_get_screen(globalconf.connection, c->phys_screen)->root);
|
||||||
xcb_aux_get_screen(globalconf.connection, c->phys_screen)->root),
|
if((qp_r = xcb_query_pointer_reply(globalconf.connection, qp_c, NULL)))
|
||||||
NULL)) != NULL)
|
|
||||||
{
|
{
|
||||||
finalgeometry.x = xqp->root_x - c->f_geometry.width / 2;
|
finalgeometry.x = qp_r->root_x - c->f_geometry.width / 2;
|
||||||
finalgeometry.y = xqp->root_y - c->f_geometry.height / 2;
|
finalgeometry.y = qp_r->root_y - c->f_geometry.height / 2;
|
||||||
|
|
||||||
p_delete(&xqp);
|
p_delete(&qp_r);
|
||||||
}
|
}
|
||||||
|
|
||||||
finalgeometry = titlebar_geometry_add(&c->titlebar, finalgeometry);
|
finalgeometry = titlebar_geometry_add(&c->titlebar, finalgeometry);
|
||||||
|
|
Loading…
Reference in a new issue