Fixed crash when window height was less or equal to bar height
commitdabf6a25ab01107fc1e0464ee6a3e369d1626f97
authormikau <mikau@aaathats3as.com>
Tue, 12 May 2020 15:09:01 +0000 (12 17:09 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 30 May 2020 19:28:25 +0000 (30 21:28 +0200)
tree9564367efc2443469349953ae7499c0b6c892ca7
parentb5f9ec647aae2d9a1d3bd586eb7523a4e0a329a3
Fixed crash when window height was less or equal to bar height

When resizing, the embedded client is being resized to (height = wh - bh),
which is (<= 0) if (wh <= bh). This generates a BadValue Error leading to a
crash.  This patch fixes that by hiding the tab bar if the window height is too
small, and also sets a min_height WM hint to prevent that situation from
happening in the first place.
tabbed.c