Apply left/top titlebars in event_handle_configurerequest

I have noticed that the HeidiSQL session manager window/dialog will be
moved down by the height of the top titlebar when selecting an entry
from the server list.

Closes https://github.com/awesomeWM/awesome/pull/385.
This commit is contained in:
Daniel Hahler 2015-08-01 19:16:41 +02:00
parent aa93a8eac9
commit ecddee44cb
1 changed files with 2 additions and 0 deletions

View File

@ -317,12 +317,14 @@ event_handle_configurerequest(xcb_configure_request_event_t *ev)
{
geometry.x = ev->x;
/* 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;
}
if(ev->value_mask & XCB_CONFIG_WINDOW_Y)
{
geometry.y = ev->y;
/* 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;
}
if(ev->value_mask & XCB_CONFIG_WINDOW_WIDTH)