Fix workspace area calculation

Fixes #4 by calculating the useable workspace manually rather than using _NET_WORKAREA. Code to do this is taken from X-Tile.