respect position in geometry of floating windows
This commit is contained in:
parent
6c699801ab
commit
57e602a97c
@ -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])) {
|
xcb_reply_contains_atom(reply, atoms[_NET_WM_WINDOW_TYPE_SPLASH])) {
|
||||||
LOG("This window is a dialog window, setting floating\n");
|
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
|
/* We respect the geometry wishes of floating windows, as long as they
|
||||||
* are bigger than our minimal useful size (75x50). */
|
* are bigger than our minimal useful size (75x50). */
|
||||||
nc->rect.width = max(geom->width, 75);
|
nc->rect.width = max(geom->width, 75);
|
||||||
nc->rect.height = max(geom->height, 50);
|
nc->rect.height = max(geom->height, 50);
|
||||||
|
LOG("geometry = %d x %d\n", nc->rect.width, nc->rect.height);
|
||||||
floating_enable(nc, false);
|
floating_enable(nc, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user