summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Perner <martin@perner.cc>2011-09-16 13:13:47 +0200
committerMartin Perner <martin@perner.cc>2011-09-16 13:13:47 +0200
commit8833a8166387075d75ee15690a58cbd2aacf2a67 (patch)
tree95c137f03c0780019a71adc851a1d997a55e81c6 /src
parent3079f1aab2a82e5a22857ec386ad642b3a62d06b (diff)
downloadxmobar-8833a8166387075d75ee15690a58cbd2aacf2a67.tar.gz
xmobar-8833a8166387075d75ee15690a58cbd2aacf2a67.tar.bz2
Changes signals used
Switches HUP to USR1 and USR1 to USR2, as requested
Diffstat (limited to 'src')
-rw-r--r--src/Xmobar.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xmobar.hs b/src/Xmobar.hs
index c107d46..37fd653 100644
--- a/src/Xmobar.hs
+++ b/src/Xmobar.hs
@@ -150,8 +150,8 @@ eventLoop xcfg@(XConf d _ w fs _) vs = do
setupSignalHandler :: IO (MVar SignalType)
setupSignalHandler = do
tid <- newEmptyMVar
- installHandler sigUSR1 (Catch $ updatePosHandler tid) Nothing
- installHandler sigHUP (Catch $ changeScreenHandler tid) Nothing
+ installHandler sigUSR2 (Catch $ updatePosHandler tid) Nothing
+ installHandler sigUSR1 (Catch $ changeScreenHandler tid) Nothing
return tid
updatePosHandler :: MVar SignalType -> IO ()