summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Main.hs7
-rw-r--r--Operations.hs7
2 files changed, 7 insertions, 7 deletions
diff --git a/Main.hs b/Main.hs
index bfa6247..71d7eb2 100644
--- a/Main.hs
+++ b/Main.hs
@@ -121,13 +121,6 @@ grabKeys dpy rootw = do
-- override_redirect member is True.
--
-safeFocus :: Window -> X ()
-safeFocus w = do ws <- gets workspace
- if W.member w ws
- then setFocus w
- else do b <- isRoot w
- when b setTopFocus
-
handle :: Event -> X ()
-- run window manager command
diff --git a/Operations.hs b/Operations.hs
index 9b0a229..c0e4450 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -136,6 +136,13 @@ withServerX f = withDisplay $ \dpy -> do
f
io $ ungrabServer dpy
+safeFocus :: Window -> X ()
+safeFocus w = do ws <- gets workspace
+ if W.member w ws
+ then setFocus w
+ else do b <- isRoot w
+ when b setTopFocus
+
-- | Explicitly set the keyboard focus to the given window
setFocus :: Window -> X ()
setFocus w = do