aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Util/PositionStore.hs
diff options
context:
space:
mode:
authorDaniel Schoepe <daniel.schoepe@gmail.com>2009-11-16 18:10:13 +0100
committerDaniel Schoepe <daniel.schoepe@gmail.com>2009-11-16 18:10:13 +0100
commite8c2239f6fe58b4a9bacd3bfed984841bb860a27 (patch)
tree8647006ee46087129f1ef4249f8f0265a9bca602 /XMonad/Util/PositionStore.hs
parenta64225bbe26df7d9873ac1d4c8143e3146045b7a (diff)
downloadXMonadContrib-e8c2239f6fe58b4a9bacd3bfed984841bb860a27.tar.gz
XMonadContrib-e8c2239f6fe58b4a9bacd3bfed984841bb860a27.tar.xz
XMonadContrib-e8c2239f6fe58b4a9bacd3bfed984841bb860a27.zip
Changed interface of X.U.ExtensibleState
Ignore-this: 9a830f9341e461628974890bab0bd65b Changed the interface of X.U.ExtensibleState to resemble that of Control.Monad.State and modified the modules that use it accordingly. darcs-hash:20091116171013-7f603-0631dc163d78785b123bc10164ee3295add28b60.gz
Diffstat (limited to 'XMonad/Util/PositionStore.hs')
-rw-r--r--XMonad/Util/PositionStore.hs8
1 files changed, 3 insertions, 5 deletions
diff --git a/XMonad/Util/PositionStore.hs b/XMonad/Util/PositionStore.hs
index 4844039..830f068 100644
--- a/XMonad/Util/PositionStore.hs
+++ b/XMonad/Util/PositionStore.hs
@@ -26,7 +26,7 @@ module XMonad.Util.PositionStore (
) where
import XMonad
-import XMonad.Util.ExtensibleState
+import qualified XMonad.Util.ExtensibleState as XS
import Graphics.X11.Xlib
import Graphics.X11.Types
import Data.Typeable
@@ -46,12 +46,10 @@ instance ExtensionClass PositionStore where
extensionType = PersistentExtension
getPosStore :: X (PositionStore)
-getPosStore = getState
+getPosStore = XS.get
modifyPosStore :: (PositionStore -> PositionStore) -> X ()
-modifyPosStore f = do
- posStore <- getState
- putState (f posStore)
+modifyPosStore = XS.modify
posStoreInsert :: PositionStore -> Window -> Rectangle -> Rectangle -> PositionStore
posStoreInsert (PS posStoreMap) w (Rectangle x y wh ht) (Rectangle srX srY srWh srHt) =