Send correct position in ConfigureNotify events (FS#1030)

This event should contain the position of the top-left corner of the client's
content area. Thus, we have to add the border width to the position.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2013-03-31 18:07:49 +02:00
parent ee1fe4dd59
commit a7c3f10ce5
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@ xwindow_configure(xcb_window_t win, area_t geometry, int border)
ce.response_type = XCB_CONFIGURE_NOTIFY;
ce.event = win;
ce.window = win;
ce.x = geometry.x;
ce.y = geometry.y;
ce.x = geometry.x + border;
ce.y = geometry.y + border;
ce.width = geometry.width;
ce.height = geometry.height;
ce.border_width = border;