diff --git a/lib/XMonad/Internal/Concurrent/ACPIEvent.hs b/lib/XMonad/Internal/Concurrent/ACPIEvent.hs index 756dd33..a543ade 100644 --- a/lib/XMonad/Internal/Concurrent/ACPIEvent.hs +++ b/lib/XMonad/Internal/Concurrent/ACPIEvent.hs @@ -98,7 +98,7 @@ handleACPI fb lock tag = do LidClose -> do status <- io isDischarging -- only run suspend if battery exists and is discharging - forM_ status $ flip when runSuspend + forM_ status $ flip when $ liftIO runSuspend lock --------------------------------------------------------------------------------