From 57e602a97ce1157c0d3c2d9fb049263d967c4cd5 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 12 Nov 2010 20:55:26 +0100 Subject: [PATCH] respect position in geometry of floating windows --- src/manage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/manage.c b/src/manage.c index 134abe9e..e81d906a 100644 --- a/src/manage.c +++ b/src/manage.c @@ -190,10 +190,13 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki xcb_reply_contains_atom(reply, atoms[_NET_WM_WINDOW_TYPE_SPLASH])) { LOG("This window is a dialog window, setting floating\n"); + nc->rect.x = geom->x; + nc->rect.y = geom->y; /* We respect the geometry wishes of floating windows, as long as they * are bigger than our minimal useful size (75x50). */ nc->rect.width = max(geom->width, 75); nc->rect.height = max(geom->height, 50); + LOG("geometry = %d x %d\n", nc->rect.width, nc->rect.height); floating_enable(nc, false); } -- 2.39.5