diff options
author | dscho <dscho> | 2001-11-27 12:59:50 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-11-27 12:59:50 +0000 |
commit | 0c2c50734aef08429fc882470592ceb8dca734c3 (patch) | |
tree | 02a922b3fb19ccf1ec3d77d29f830f8947379423 | |
parent | 3825ed9fb99d0626c57deffe19b825e9619fafe4 (diff) | |
download | libtdevnc-0c2c50734aef08429fc882470592ceb8dca734c3.tar.gz libtdevnc-0c2c50734aef08429fc882470592ceb8dca734c3.zip |
input works on other X11 servers than XFree86
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | x11vnc.c | 5 |
2 files changed, 8 insertions, 4 deletions
@@ -9,8 +9,8 @@ VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg # The code for 3 Bytes/Pixel is not very efficient! FLAG24 = -DALLOW24BPP -#OPTFLAGS=-g # -Wall -OPTFLAGS=-O2 -Wall +OPTFLAGS=-g # -Wall +#OPTFLAGS=-O2 -Wall CFLAGS=$(OPTFLAGS) $(PTHREADDEF) $(FLAG24) $(INCLUDES) RANLIB=ranlib @@ -58,7 +58,8 @@ OSXvnc-server: mac.o libvncserver.a $(CC) -o OSXvnc-server mac.o $(LIBS) $(OSX_LIBS) x11vnc: x11vnc.o libvncserver.a - $(CC) -o x11vnc x11vnc.o libvncserver.a /usr/lib/libz.a /usr/lib/libjpeg.a $(XLIBS) + $(CC) -o x11vnc x11vnc.o libvncserver.a -lz -ljpeg $(XLIBS) +# $(CC) -o x11vnc x11vnc.o libvncserver.a /usr/lib/libz.a /usr/lib/libjpeg.a $(XLIBS) #$(LIBS) $(XLIBS) storepasswd: storepasswd.o d3des.o vncauth.o @@ -247,7 +247,9 @@ int main(int argc,char** argv) fprintf(stderr,"Couldn't open display!\n"); exit(2); } - + + XTestGrabControl(dpy,True); + xscreen = DefaultScreen(dpy); init_keycodes(); @@ -330,6 +332,7 @@ int main(int argc,char** argv) maxMsecsToConnect -= screen->rfbDeferUpdateTime; if(maxMsecsToConnect<0) { fprintf(stderr,"Maximum time to connect reached. Exiting.\n"); + XTestDiscard(dpy); exit(2); } |