mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-26 09:41:52 -07:00
make square work with new doLayout.
This commit is contained in:
@@ -13,9 +13,10 @@ module XMonadContrib.Square ( square ) where
|
||||
|
||||
import XMonad
|
||||
import Graphics.X11.Xlib
|
||||
import StackSet ( integrate )
|
||||
|
||||
square :: Layout
|
||||
square = Layout { doLayout = arrange, modifyLayout = message }
|
||||
square = Layout { doLayout = \r s -> arrange r (integrate s), modifyLayout = message }
|
||||
where
|
||||
arrange rect ws@(_:_) = do
|
||||
let (rest, sq) = splitSquare rect
|
||||
|
Reference in New Issue
Block a user