Fix measurement bug by using each screen's work area instead of its raw bounds. Remove some debugging.