Add native error handler for systray

This commit is contained in:
Matthias Schiffer 2011-07-19 14:50:04 +02:00
parent bc9f8e1fbc
commit 227cf56f44
6 changed files with 73 additions and 26 deletions

View 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