diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-04-11 13:18:31 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-04-11 13:18:31 -0400 |
commit | 12b0bb343b39ba51077e09f98da11d7cbb5342e4 (patch) | |
tree | c3acf1ce6611ae6766a277a4740ae1a74564d268 | |
parent | 386857ba6a9d927f96c8dc18139577fe768055a0 (diff) |
Fix window_set_child_size() for windows without decoration
-rw-r--r-- | clients/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/window.c b/clients/window.c index db07af3c..a51a5aba 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; |