Add native error handler for systray
This commit is contained in:
parent
bc9f8e1fbc
commit
227cf56f44
6 changed files with 73 additions and 26 deletions
17
lib/Phi/Bindings/SystrayErrorHandler.hsc
Normal file
17
lib/Phi/Bindings/SystrayErrorHandler.hsc
Normal file
|
@ -0,0 +1,17 @@
|
|||
{-# LANGUAGE ForeignFunctionInterface #-}
|
||||
|
||||
module Phi.Bindings.SystrayErrorHandler ( setSystrayErrorHandler
|
||||
, getLastErrorWindow
|
||||
) where
|
||||
|
||||
#include <SystrayErrorHandler.h>
|
||||
|
||||
|
||||
import Graphics.X11.Xlib
|
||||
|
||||
|
||||
foreign import ccall unsafe "SystrayErrorHandler.h setSystrayErrorHandler"
|
||||
setSystrayErrorHandler :: IO ()
|
||||
|
||||
foreign import ccall unsafe "SystrayErrorHandler.h getLastErrorWindow"
|
||||
getLastErrorWindow :: IO Window
|
Reference in a new issue