Issue 280 in xmonad: XMonad.Layout.Master with two windows only, no Master

Status: New Owner: ---- New issue 280 by re...@katspace.org: XMonad.Layout.Master with two windows only, no Master http://code.google.com/p/xmonad/issues/detail?id=280 What steps will reproduce the problem? 1. add the following to one's xmonad.hs import XMonad.Layout.Master myLayout = mastered 0.05 0.5 $ Full ||| ... 2. restart Xmonad 3. Go to an empty workspace. Start a terminal window. Start another terminal window. What is the expected output? What do you see instead? When the second window appeared, I expected to see the layout split with a Master on the left, and the other window on the right. What I saw instead was a Full layout. When a third terminal was started up, the layout DID behave as expected, with the split between Master and the other windows. What version of the product are you using? On what operating system? This is xmonad-darcs, XMonadContrib-darcs on Ubuntu Intrepid 8.04 Please provide any additional information below. I think this is an error in XMonad/Layout/Master.hs, line 79: if length ws > 2 then do If I change the "> 2" to ">= 2", it works as expected. So it looks like an off-by-one error. If this error is due to a module from XMonadContrib, please tag this issue with 'Component-Contrib' below. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
participants (1)
-
codesite-noreply@google.com