summaryrefslogtreecommitdiffstats
path: root/Config.hs
diff options
context:
space:
mode:
authorJason Creighton <jcreigh@gmail.com>2007-06-02 06:06:47 +0200
committerJason Creighton <jcreigh@gmail.com>2007-06-02 06:06:47 +0200
commit352226ebeeaa846238f8ce8799479b46848a5019 (patch)
treee5cf4a42a14f3158aedc7228a2cdb01a6f0f3d1e /Config.hs
parent0c253882412cd1b56821d7f35b2f6db556e9f4be (diff)
downloadmetatile-352226ebeeaa846238f8ce8799479b46848a5019.tar
metatile-352226ebeeaa846238f8ce8799479b46848a5019.zip
make mouse bindings configurable
darcs-hash:20070602040647-b9aa7-d7bad13c4919882368872a88f04a678308162be6
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Config.hs b/Config.hs
index f70f0e5..98f30eb 100644
--- a/Config.hs
+++ b/Config.hs
@@ -141,3 +141,10 @@ keys = M.fromList $
[((m .|. modMask, key), screenWorkspace sc >>= f)
| (key, sc) <- zip [xK_w, xK_e, xK_r] [0..]
, (f, m) <- [(view, 0), (shift, shiftMask)]]
+
+mouseBindings :: M.Map (KeyMask, Button) (Window -> X ())
+mouseBindings = M.fromList $
+ [ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w))
+ , ((modMask, button2), (\w -> focus w >> swapMaster))
+ , ((modMask, button3), (\w -> focus w >> mouseResizeWindow w))
+ ]