openframeworks / openFrameworks

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

windows 8.1 app window position issue #3595

Closed liquidzym closed 8 years ago

liquidzym commented 9 years ago

when open up the app, the window always stay on top left corner of screen win7&win8 got same issue windows

bilderbuchi commented 9 years ago

@openframeworks/windows can anybody reproduce?

bilderbuchi commented 9 years ago

also @liquidzym please state your OF version and IDE you're using.

tgfrerer commented 9 years ago

Yes, I'm seeing this too, on windows 8.1.

Also window does not restore its original size after toggling back from fullscreen.

igiso commented 9 years ago

this seems like undefined behavior of ofWindowSettings::position due to different c++ dialect (?) .. can you guys try using the new initialization format with the ofWindowSettings and set the position to something before creating the gl window?

do you get build warnings as well?

use this in main:

ofGLFWWindowSettings settings; settings.width = 900; settings.height = 600; settings.position.x = 300; settings.position.y= 300; settings.resizable = true; settings.closeOtherWindows=true; shared_ptr mainWindow = ofCreateWindow(settings); ofRunApp(mainWindow, mainApp); ofRunMainLoop();

liquidzym commented 9 years ago

@bilderbuchi,sorry about that,i'm using current master brunch which is 0.9.0, visual studio 2013 IDE

liquidzym commented 9 years ago

@igiso,ok,try with your code,not getting build warning,but seems there's no method called closeOtherWindows besides that,it did works ,the main window postion at the 300,300

natxopedreira commented 9 years ago

Im also seeing this. current oF master branch, win 8.1 vs21012

DomAmato commented 8 years ago

has this been fixed? I dont have this problem on any of my machines

liquidzym commented 8 years ago

i think that's already been fixed at least on windows. should i close this issue?