mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-09 08:21:51 -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 XMonad
|
||||||
import Graphics.X11.Xlib
|
import Graphics.X11.Xlib
|
||||||
|
import StackSet ( integrate )
|
||||||
|
|
||||||
square :: Layout
|
square :: Layout
|
||||||
square = Layout { doLayout = arrange, modifyLayout = message }
|
square = Layout { doLayout = \r s -> arrange r (integrate s), modifyLayout = message }
|
||||||
where
|
where
|
||||||
arrange rect ws@(_:_) = do
|
arrange rect ws@(_:_) = do
|
||||||
let (rest, sq) = splitSquare rect
|
let (rest, sq) = splitSquare rect
|
||||||
|
Reference in New Issue
Block a user