When using your Macintosh you may find that the foremost window will periodically lose focus, which can be frustrating when you are typing or otherwise providing input to a window. This usually happens because another window is demanding your attention via an alert or dialogue box.