Renamed binaries to lowercase
This commit is contained in:
parent
33cd402ae9
commit
3e1ca80912
5 changed files with 62 additions and 19 deletions
|
@ -167,12 +167,14 @@ runPhi xconfig config widget = do
|
|||
|
||||
forM_ panels $ liftIO . mapWindow conn . panelWindow
|
||||
|
||||
liftIO $ forkIO $ receiveEvents phi conn
|
||||
liftIO $ do
|
||||
forkIO $ receiveEvents phi conn
|
||||
forkIO $ receiveErrors phi conn
|
||||
|
||||
forever $ do
|
||||
available <- messageAvailable phi
|
||||
repaint <- gets phiRepaint
|
||||
when (not available && repaint) $ liftIO $ threadDelay 30000
|
||||
when (not available && repaint) $ liftIO $ threadDelay 20000
|
||||
|
||||
available <- messageAvailable phi
|
||||
when (not available && repaint) $ do
|
||||
|
@ -311,6 +313,10 @@ receiveEvents :: Phi -> Connection -> IO ()
|
|||
receiveEvents phi conn =
|
||||
forever $ receiveEvents' conn >>= sendMessages phi
|
||||
|
||||
receiveErrors :: Phi -> Connection -> IO ()
|
||||
receiveErrors phi conn =
|
||||
forever $ waitForError conn >>= putStrLn . ("XHB error: " ++) . show
|
||||
|
||||
updatePanels :: (Widget w s c X11) => PhiX w s c ()
|
||||
updatePanels = do
|
||||
X11 conn _ screen <- asks phiX11
|
||||
|
|
|
@ -48,6 +48,7 @@ atoms = [ "ATOM"
|
|||
, "_XEMBED"
|
||||
, "_XROOTPMAP_ID"
|
||||
, "_XROOTMAP_ID"
|
||||
, "PHI_SYSTRAY_HELPER"
|
||||
]
|
||||
|
||||
-- the expression must have the type (ConnectionClass c => c -> String)
|
||||
|
|
Reference in a new issue