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:
parent
ee1fe4dd59
commit
a7c3f10ce5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue