aboutsummaryrefslogtreecommitdiff
path: root/src/Internal/KeysM.hs
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-03-29 14:26:40 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:45 -0600
commitdbb57dff1700fcedd4d682829c55ae7abc80613a (patch)
tree0599b9b19f2e404c2a72b3e1a7b59890d03cb426 /src/Internal/KeysM.hs
parent03906bb7a0183c5bc89c30ec3d31d47d06f5fc4f (diff)
downloadrde-dbb57dff1700fcedd4d682829c55ae7abc80613a.tar.gz
rde-dbb57dff1700fcedd4d682829c55ae7abc80613a.tar.bz2
rde-dbb57dff1700fcedd4d682829c55ae7abc80613a.zip
Fixed bug where multiple configures would override previous configures for window-specific bindings
Diffstat (limited to 'src/Internal/KeysM.hs')
-rw-r--r--src/Internal/KeysM.hs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Internal/KeysM.hs b/src/Internal/KeysM.hs
index dfb1429..f834796 100644
--- a/src/Internal/KeysM.hs
+++ b/src/Internal/KeysM.hs
@@ -28,13 +28,6 @@ class Bindable k where
bind :: k -> BindingBuilder (BindableValue k) a -> BindableMonad k l ()
-instance Semigroup (KeysM l ()) where
- (<>) = mappend
-
-instance Monoid (KeysM l ()) where
- mempty = return ()
- mappend = (>>)
-
runKeys :: KeysM l a -> XConfig l -> Map (KeyMask, KeySym) (X ())
runKeys (KeysM stateM) config =
snd $ execState stateM (config, Map.empty)