rlopez1j / xmonad

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

XMonad.Layout.LayoutHints serious bugs #425

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import XMonad.Layout.LayoutHints
2. layoutHook = avoidStruts $ layoutHintsToCenter(noFrillsDeco shrinkText 
myTheme (Tall 1 0.05 0.5)),
3. <try switching focus several times>

What is the expected output? What do you see instead?
It's expected to try to fill gaps without creating overlaps, but instead it 
creates lots of overlaps between each window and decoration of the next window, 
plus after some switching of focus windows get needless resizing, then 
sometimes totally wrong, overlapping layout and finally, disappearance of 
windows with disappearance of their processes.

What version of the product are you using? On what operating system?
xmonad 0.9.1
Linux 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686

Are you using an xmonad.hs?  Please attach it and the output of "xmonad
--recompile".
Yes. Afraid to check for output now since browser window could be taken off as 
well. At least there were no error window.

Please provide any additional information below.
I remember that before, when I tried subj with simpler config, there was only 
one problem: it overlapped each window with next window's 2-pixel thick border.

Original issue reported on code.google.com by kevind...@gmail.com on 2 Jan 2011 at 3:36

GoogleCodeExporter commented 9 years ago
I agree that these deficiencies are significant.

If you switch the order of hints and the decoration, the decorations are 
unaffected, but then the hints are incorrectly applied, since the correctly 
resized windows are later resized to make space for the decoration.

LayoutHints does not treat windows which are the decorations differently, so 
they get resized (or at least the gray background does). Either LayoutHints 
could special case windows arranged by the layout being modified which do not 
exist in the passed Stack, or the decoration modules could set appropriate 
hints on those windows.

Original comment by vogt.a...@gmail.com on 4 Jan 2011 at 1:38