diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 41e8287b..5a078de8 100644 --- a/src/window.c +++ b/src/window.c @@ -4413,6 +4413,16 @@ update_size_hints (MetaWindow *window) window->size_hints.min_height); window->size_hints.max_height = window->size_hints.min_height; } + + /* fix busted apps that set 0x0 hints */ + if (window->size_hints.max_height < 1) + window->size_hints.max_height = 1; + if (window->size_hints.min_height < 1) + window->size_hints.min_height = 1; + if (window->size_hints.max_width < 1) + window->size_hints.max_width = 1; + if (window->size_hints.min_width < 1) + window->size_hints.min_width = 1; if (window->size_hints.flags & PResizeInc) { |