|
|
@ -143,8 +143,10 @@ clipboard_init(void)
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
rv = 0;
|
|
|
|
rv = 0;
|
|
|
|
XSetErrorHandler(clipboard_error_handler);
|
|
|
|
/* setting the error handlers can cause problem when shutting down
|
|
|
|
XSetIOErrorHandler(clipboard_fatal_handler);
|
|
|
|
chansrv on some xlibs */
|
|
|
|
|
|
|
|
//XSetErrorHandler(clipboard_error_handler);
|
|
|
|
|
|
|
|
//XSetIOErrorHandler(clipboard_fatal_handler);
|
|
|
|
g_display = XOpenDisplay(0);
|
|
|
|
g_display = XOpenDisplay(0);
|
|
|
|
if (g_display == 0)
|
|
|
|
if (g_display == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|