diff options
author | dscho <dscho> | 2001-11-26 17:06:39 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-11-26 17:06:39 +0000 |
commit | 3825ed9fb99d0626c57deffe19b825e9619fafe4 (patch) | |
tree | c9b3166532195e35a02478640b55d195bd205652 | |
parent | 7094fbc15be9f4ae0dea90293d23fda25ddcfd86 (diff) | |
download | libtdevnc-3825ed9fb99d0626c57deffe19b825e9619fafe4.tar.gz libtdevnc-3825ed9fb99d0626c57deffe19b825e9619fafe4.zip |
no crash when display was wrong
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | x11vnc.c | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -1,7 +1,8 @@ immediate: ---------- -x11vnc: clipboard, cursor, updates interruptible by input +x11vnc: clipboard, cursor, updates interruptible by input, + sometimes XTest fails (but doesn't with x0rfbserver) extra_bytes in rfbDrawCharWithClip. tested mouse buttons make copy rect, but text is not marked as mod. cursor drawing: set optional grain to mark bigger rectangles as drawn (else @@ -243,6 +243,11 @@ int main(int argc,char** argv) if(dpy==0) dpy = XOpenDisplay(""); + if(dpy==0) { + fprintf(stderr,"Couldn't open display!\n"); + exit(2); + } + xscreen = DefaultScreen(dpy); init_keycodes(); |