One Dev Question with Raymond Chen - What Monitor Does a Window Default To?

Play One Dev Question with Raymond Chen - What Monitor Does a Window Default To?
Sign in to queue


The 'One Dev Question with Raymond Chen' video series is part of the One Dev Minute channel.  In this series, longtime Microsoft developer and semi-official Windows historian Raymond Chen covers a series of questions about Microsoft Windows development, team culture, and/or history.  If you have additional questions for Raymond, please add your questions in the comments section below.  You can also find out more development details about Windows and its history on Raymond's blog.



The Discussion

  • User profile image

    Over the years, I have come to the conclusion that unless an app explicitly specifies which monitor a window should appear on (eg, restoring coordinates persisted when the app was last closed), it'll default to the monitor where the mouse pointer happens to be on by the time it's ready to be shown.

    Is there any truth to this, or is that just my imagination?  I definitely have some apps that make no effort to try to remember where they last showed up, and they consistently"follow the mouse" in this fashion.  Others...not so much.  So to this day I wonder whether this is behavior inherited from Windows itself or not.

Add Your 2 Cents