# Moving window to second monitor causes window to change size

**URL:** <https://discourse.glfw.org/t/moving-window-to-second-monitor-causes-window-to-change-size/1786>\
**Category:** support\
**Created:** [March 10, 2021, 10:27am UTC](https://discourse.glfw.org/t/moving-window-to-second-monitor-causes-window-to-change-size/1786 "2021-03-10T10:27:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lefty](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@lefty](https://discourse.glfw.org/u/lefty)\
**Post date:** [March 10, 2021, 10:27am UTC](https://discourse.glfw.org/t/moving-window-to-second-monitor-causes-window-to-change-size/1786/1 "2021-03-10T10:27:55Z")

</div>

On Windows 10, I have a PC with 2 monitors of different resolutions. If I drag my glfw created window from first to second monitor it suddenly changes size when it gets exactly half way onto the second monitor. Is this a bug, or am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![elmindreda](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/elmindreda/32/26_2.png) [@elmindreda](https://discourse.glfw.org/u/elmindreda)\
**Post date:** [March 23, 2021, 8:27pm UTC](https://discourse.glfw.org/t/moving-window-to-second-monitor-causes-window-to-change-size/1786/2 "2021-03-23T20:27:44Z")

</div>

That sounds like per-monitor DPI scaling. Did you set the `GLFW_SCALE_TO_MONITOR` window hint? What version of GLFW are you using?
