layout: Don't query the monitor size twice