openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.84k stars 2.56k forks source link

ofGLFWWindowSettings::monitor has no effect (with Windows) #7959

Open Jonathhhan opened 1 month ago

Jonathhhan commented 1 month ago

All of the other GLFW settings work, but ofGLFWWindowSettings::monitor not (if I am right, that one should choose the monitor where the screen coordinates start). I experience the issue with Windows.

Jonathhhan commented 1 month ago

Maybe with my Windows system is somethiong wrong, because the app Window always appears on the second monitor...

dimitre commented 1 month ago

There is a lot of issues with GLFW window handling. In fact for production I'm using a fork that fixes most problems to me, but it changes API. if you want to try it out, it is here https://github.com/dimitre/openFrameworks/tree/glfw0

in this fork you should use ofWindowSettings instead of ofGLFWWindowSettings

Jonathhhan commented 1 month ago

@dimitre thank you. I tried it, the monitor setting still has no effect.

dimitre commented 1 month ago

which one is your primary monitor? and which one is on the left on arrangement? other thing you can try, not sure if it will result differently, is to try a different setting in that branch, like

        settings.fullscreenDisplays = { 1 };
Jonathhhan commented 1 month ago

I guess, my primary monitor is on the right (I had to switch the order in the control panel). This can make it more confusing.

dimitre commented 1 month ago

I've just perceived a similar issue to yours https://github.com/openframeworks/openFrameworks/issues/7993