factor get_final_window_monitor out of get_final_window_rect
use primary number if /general/display_n equals -1
rename height and width locals to reflect they store percentages
fix: don't assume top coordinate is zero
fix: compared total #pixels with percentage