Say I have two monitors:
Left = 1280 x 768 Right = 1920 x 1200
I open a program on
Right which in the control panel is set to my primary display. When I hit the "maximize" button, it expands to fill the
1920 x 1200 as expected. Now say I de-maximize it and drag it to
Left and repeat. Well now it is only expanded to
1280 x 768 and all the internal elements scaled correctly as well; I presume the internals are on a relative metric of some type.
But how does an application know which display it is currently on?