Merge pull request #52 from tagatac/master

Prevent SegFault in the absence of XRANDR