XRandR support on the VR

Overview

The changes consist of several parts:

If you're wondering why we no longer pass the orientation to the X server on the command line, it's because the orientation it picks up from the -screen option is unrelated to the Xrandr rotation. That is, Xrandr rotation 0 is always the orientation the X server started up in, even if the server was started up in an orientation other than the default. Whereas from the point of view of the Xrandr clients it's much easier if the same rotation value always means the same thing. So in the interest of sanity the X server is always started upright and then rotated to the position saved in /etc/orientation by invoking xvr3or.

Downloads

The binaries are built with the snow compiler that vrdeb 2.1 installs (snow 1.4).

Screenshots

Restarting the WM is enough to resize maximised applications correctly

Landscape mode is most useful for long lines of text

keymacs gets a bit confused when the screen gets taller, but things sort themselves out next time it resizes

Credits

See the source files for the names of the authors: I did not write any of these applications.