Bugfix: Fix drag&drop in GTK applications (firefox, thunderbird)

Thanks to Daniel Wäber’s contribution to wmii:
http://code.suckless.org/hg/wmii/rev/f4f25de0de54
This commit is contained in:
Michael Stapelberg
2009-05-02 20:51:55 +02:00
parent 06ec4d66ae
commit 99054fb50f
4 changed files with 13 additions and 6 deletions

View File

@ -220,8 +220,8 @@ void fake_configure_notify(xcb_connection_t *conn, Rect r, xcb_window_t window)
void fake_absolute_configure_notify(xcb_connection_t *conn, Client *client) {
Rect absolute;
absolute.x = client->rect.x;
absolute.y = client->rect.y;
absolute.x = client->rect.x + client->child_rect.x;
absolute.y = client->rect.y + client->child_rect.y;
absolute.width = client->rect.width - (2 * client->child_rect.x);
absolute.height = client->rect.height - client->child_rect.y - 1;