Revert "Apply left/top titlebars in event_handle_configurerequest"
This reverts commit ecddee44cb
. The commit broke
window gravities as can be reproduced with metacity's test-gravity.c.
This commit is contained in:
parent
67faf52bab
commit
5760e536f9
2
event.c
2
event.c
|
@ -317,14 +317,12 @@ event_handle_configurerequest(xcb_configure_request_event_t *ev)
|
||||||
{
|
{
|
||||||
geometry.x = ev->x;
|
geometry.x = ev->x;
|
||||||
/* The ConfigureRequest specifies the position of the outer corner of the client window, we want the frame */
|
/* The ConfigureRequest specifies the position of the outer corner of the client window, we want the frame */
|
||||||
geometry.x -= c->titlebar[CLIENT_TITLEBAR_LEFT].size;
|
|
||||||
geometry.x -= c->border_width;
|
geometry.x -= c->border_width;
|
||||||
}
|
}
|
||||||
if(ev->value_mask & XCB_CONFIG_WINDOW_Y)
|
if(ev->value_mask & XCB_CONFIG_WINDOW_Y)
|
||||||
{
|
{
|
||||||
geometry.y = ev->y;
|
geometry.y = ev->y;
|
||||||
/* The ConfigureRequest specifies the position of the outer corner of the client window, we want the frame */
|
/* The ConfigureRequest specifies the position of the outer corner of the client window, we want the frame */
|
||||||
geometry.y -= c->titlebar[CLIENT_TITLEBAR_TOP].size;
|
|
||||||
geometry.y -= c->border_width;
|
geometry.y -= c->border_width;
|
||||||
}
|
}
|
||||||
if(ev->value_mask & XCB_CONFIG_WINDOW_WIDTH)
|
if(ev->value_mask & XCB_CONFIG_WINDOW_WIDTH)
|
||||||
|
|
Loading…
Reference in New Issue