Issue 443 in xmonad: XMonad should guard against resizing window dimensions to 0

Status: New Owner: ---- New issue 443 by elias.ku...@gmail.com: XMonad should guard against resizing window dimensions to 0 http://code.google.com/p/xmonad/issues/detail?id=443 What steps will reproduce the problem? 1. Take a program such as gnome-terminal, xterm or emacs 2. Use mod-right resizing to make the window as close to 0x0 size as possible. What is the expected output? What do you see instead? The windows should remain at some minimum size. Instead, at least one of the dimensions seems to go to 0 and "undefined behaviour" occurs. With xterm, the terminal seems to become infinitely wide or infinitely tall. With emacs and gnome-terminal, the programs simply crash. Both of the programs can incidentally have multiple windows for the same process so this would just "mysteriously" make all of them disappear. What version of the product are you using? On what operating system? XMonad 0.9 in Ubuntu 10.10. Are you using an xmonad.hs? Please attach it and the output of "xmonad --recompile". This is reproducible for me without any customisations. Please provide any additional information below.

Comment #1 on issue 443 by vogt.a...@gmail.com: XMonad should guard against resizing window dimensions to 0 http://code.google.com/p/xmonad/issues/detail?id=443 Could you clarify whether this is for floating or for tiled windows? For floating windows, there is this issue/patch: http://code.google.com/p/xmonad/issues/detail?id=407 For tiled windows, there are some hinted layouts in contrib, which might also obey the minimum size requested.

Comment #2 on issue 443 by elias.ku...@gmail.com: XMonad should guard against resizing window dimensions to 0 http://code.google.com/p/xmonad/issues/detail?id=443 I originally only tested with floating windows (mod-right-click resize requires them anyway), but the "bug" manifests with tiled windows too. Not always but should after a few tries at making a window have zero-width. I tested the patch using the latest xmonad from darcs. It seems that the issue with bug 407 is not related to passing zero dimensions to some windows. AIUI, the patch only fixes some overflow errors but will still happily permit "legitimate" zero-dimension resizing. I tried to test the Hinted layouts too but I got into various troubles with xmonad and don't really have to go any further with them atm. To summarise: 1. floating windows do seem to have this probably with zero-dimensions even with the patch. 2. I haven't tested the hinted layouts so I don't know if they prevent this problem.
participants (1)
-
codesite-noreply@google.com