detect active monitor using input focus