Commit 3825ed9f authored by dscho's avatar dscho

no crash when display was wrong

parent 7094fbc1
immediate: 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. extra_bytes in rfbDrawCharWithClip.
tested mouse buttons make copy rect, but text is not marked as mod. 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 cursor drawing: set optional grain to mark bigger rectangles as drawn (else
......
...@@ -243,6 +243,11 @@ int main(int argc,char** argv) ...@@ -243,6 +243,11 @@ int main(int argc,char** argv)
if(dpy==0) if(dpy==0)
dpy = XOpenDisplay(""); dpy = XOpenDisplay("");
if(dpy==0) {
fprintf(stderr,"Couldn't open display!\n");
exit(2);
}
xscreen = DefaultScreen(dpy); xscreen = DefaultScreen(dpy);
init_keycodes(); init_keycodes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment