Changing window settings during runtime with 0.9

hello of community…

i’m wondering how to change window dimensions or window/fullscreen mode while my app is running…

with of 0.8.4 i’m using ofxMultiGLFWWindow which sets the windows in testApp.cpp/setup… so it was possible to read screensizes from a xml file and then create the windows accordingly…
this addon also allows to hide/show a window or change from window to fullscreen mode with keyboard input…

now with 0.9.3 multi window support is included in the core which makes addons like ofxMultiGLFWWindow or ofxFenster deprecated…

i found some examples which showed me how to create multiple windows with 0.9…

int main( ){
    ofGLFWWindowSettings settings;
    settings.width = 1024;
    settings.height = 768;
    settings.setPosition(ofVec2f(100, 100));
    settings.resizable = true;
    shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
    settings.width = 800;
    settings.height = 600;
    settings.setPosition(ofVec2f(ofGetScreenWidth(), 0));
    settings.resizable = false;
    settings.decorated = false;
    settings.shareContextWith = mainWindow;
    shared_ptr<ofAppBaseWindow> secondWindow = ofCreateWindow(settings);
    shared_ptr<ofApp> mainApp(new ofApp);
    ofAddListener(secondWindow->events().draw, mainApp.get(), &ofApp::drawSecondWindow);
    ofRunApp(mainWindow, mainApp);

but as this creates windows in main.cpp i’m not able to change window settings during runtime with keyboard input or data from xml files…

hope someone can help and point me in the right direction…

thanks and greetz…