summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/clipboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/chansrv/clipboard.c')
-rw-r--r--sesman/chansrv/clipboard.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sesman/chansrv/clipboard.c b/sesman/chansrv/clipboard.c
index 5f01f241..3556933a 100644
--- a/sesman/chansrv/clipboard.c
+++ b/sesman/chansrv/clipboard.c
@@ -371,6 +371,11 @@ clipboard_init(void)
{
return 0;
}
+ if (!g_display)
+ {
+ // prevent crash in XInternAtom
+ return 3;
+ }
xfuse_init();
xcommon_init();