From 12b0bb343b39ba51077e09f98da11d7cbb5342e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 11 Apr 2011 13:18:31 -0400 Subject: [PATCH] Fix window_set_child_size() for windows without decoration --- clients/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index db07af3c8..a51a5aba2 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1295,7 +1295,7 @@ window_get_child_allocation(struct window *window, void window_set_child_size(struct window *window, int32_t width, int32_t height) { - if (!window->fullscreen) { + if (!window->fullscreen && window->decoration) { window->allocation.x = 20 + window->margin; window->allocation.y = 60 + window->margin; window->allocation.width = width + 20 + window->margin * 2;