@@ -41,6 +41,7 @@ typedef int (*PFN_XCloseDisplay)(Display* /* display */
4141typedef Status (* PFN_XInitThreads )(void );
4242typedef int (* PFN_XFlush )(Display * /* display */
4343);
44+ typedef Status (* PFN_XSetWMProtocols )(Display * , Window , Atom * , int );
4445
4546static PFN_XDestroyWindow cube_XDestroyWindow = NULL ;
4647static PFN_XOpenDisplay cube_XOpenDisplay = NULL ;
@@ -55,6 +56,7 @@ static PFN_XGetVisualInfo cube_XGetVisualInfo = NULL;
5556static PFN_XCloseDisplay cube_XCloseDisplay = NULL ;
5657static PFN_XInitThreads cube_XInitThreads = NULL ;
5758static PFN_XFlush cube_XFlush = NULL ;
59+ static PFN_XSetWMProtocols cube_XSetWMProtocols = NULL ;
5860
5961#define XDestroyWindow cube_XDestroyWindow
6062#define XOpenDisplay cube_XOpenDisplay
@@ -69,6 +71,7 @@ static PFN_XFlush cube_XFlush = NULL;
6971#define XCloseDisplay cube_XCloseDisplay
7072#define XInitThreads cube_XInitThreads
7173#define XFlush cube_XFlush
74+ #define XSetWMProtocols cube_XSetWMProtocols
7275
7376void * initialize_xlib () {
7477 void * xlib_library = NULL ;
@@ -101,6 +104,7 @@ void* initialize_xlib() {
101104 cube_XCloseDisplay = TYPE_CONVERSION (PFN_XCloseDisplay )(dlsym (xlib_library , "XCloseDisplay" ));
102105 cube_XInitThreads = TYPE_CONVERSION (PFN_XInitThreads )(dlsym (xlib_library , "XInitThreads" ));
103106 cube_XFlush = TYPE_CONVERSION (PFN_XFlush )(dlsym (xlib_library , "XFlush" ));
107+ cube_XSetWMProtocols = TYPE_CONVERSION (PFN_XSetWMProtocols )(dlsym (xlib_library , "XSetWMProtocols" ));
104108
105109 return xlib_library ;
106110}
0 commit comments