rlopez1j / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

XMonad should guard against resizing window dimensions to 0 #443

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by elias.ku...@gmail.com on 10 Apr 2011 at 1:30

GoogleCodeExporter commented 9 years ago
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.

Original comment by vogt.a...@gmail.com on 11 Apr 2011 at 5:34

GoogleCodeExporter commented 9 years ago
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.

Original comment by elias.ku...@gmail.com on 12 Apr 2011 at 4:24