00001
00034 #include "x11compat.h"
00035
00036 #include <stdexcept>
00037
00038
00039
00040
00041 #include "X11/Xlib.h"
00042
00043 using namespace AlarmNotifications;
00044
00045 void AlarmNotifications::InitializeXThreads()
00046 {
00047 const int result = XInitThreads();
00048 if ( result == 0 )
00049 throw std::logic_error ( "Could not initialize X11 threads!" );
00050 }