Skip to content

Commit b117afe

Browse files
committed
Turn off X11 mouse acceleration, for VNC
Workaround for VNC using relative motion, not absolute motion. PS2 uses relative motion, while USB tablets do absolute motion.
1 parent 2860df0 commit b117afe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile.x11

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ RUN sed -e 's|superuser|superuser -a -z "$SUDO_USER"|' -i "$ROOTFS/root/.profile
9191
COPY boot2docker.png "$ROOTFS/usr/local/share/pixmaps/logo.png"
9292

9393
RUN set -x && \
94-
( echo 'test -n "$DISPLAY" || DISPLAY=:0'; echo 'export DISPLAY' ) >> "$ROOTFS/etc/skel/.profile"
94+
( echo 'test -n "$DISPLAY" || DISPLAY=:0'; echo 'export DISPLAY' ) >> "$ROOTFS/etc/skel/.profile"; \
95+
( echo 'xset m 1/1' ) >> "$ROOTFS/etc/skel/.xinitrc"
9596

9697
RUN set -x && \
9798
sed -e '/^#X11Forwarding/a X11Forwarding yes' -i "$ROOTFS/usr/local/etc/ssh/sshd_config.orig"; \

0 commit comments

Comments
 (0)