codehenry / xmonad

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

avoidStruts and subTabbed conflict #517

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. config { layoutHook = avoidStruts $ tiled ||| ... }, confirm xmobar appears 
as normal
2. config { layoutHook = avoidStruts $ subTabbed $ tiled ||| ... } xmobar is 
hidden
3.

What is the expected output? What do you see instead?
Expect that sublayouts should respect the avoidStruts modifier

What version of the product are you using? On what operating system?
xmonad 0.1 on arch linux

Are you using an xmonad.hs?  Please attach it and the output of "xmonad
--recompile".

Please provide any additional information below.

Original issue reported on code.google.com by pcreinh...@gmail.com on 17 Oct 2012 at 4:13

Attachments:

GoogleCodeExporter commented 8 years ago
The actual bug is in Decoration, which assumes that because decoration windows 
"obviously" will be near the windows they decorate, there is no need to take 
the screen rectangle into account.  So it doesn't pass the screen rectangle 
that avoidStruts modified to Tabbed, and Tabbed ends up using the unmodified 
screen rectangle as a result.

I have some hacks to Decoration (on a machine that's in storage, sigh, and may 
remain there for a while --- I still do not have a permanent address) but they 
really are hacks; someone might want to look at a proper fix.

Original comment by allber...@gmail.com on 17 Oct 2012 at 4:31