]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/window.cpp
Put Window on the correcte monitor when initially created
[libs/gui.git] / source / graphics / window.cpp
index d27f41fd6fda9980cbf9192329335388e918d8c0..6cadf3ec9f4becb047c35033b7d70be5f919a770 100644 (file)
@@ -47,6 +47,9 @@ void Window::init()
        moving = false;
        priv = new Private;
 
+       if(options.fullscreen && !options.fullscreen_monitor)
+               options.fullscreen_monitor = display.get_desktop_mode().monitor;
+
        platform_init();
 
        display.add_window(*this);