GLFW on OS X without menu bar

Hi.

I am trying to have 4 seperate OF apps running that divide the screen so it looks like one seamless fullscreen app. I am only using one screen; i.e. not external screen.

I am using .decorated to remove each apps top bar.

int main( ){

ofGLFWWindowSettings settings;
settings.decorated = false;
settings.width = 1680/2;
settings.height = 1080/2;
settings.setPosition(ofVec2f(0,-30));
settings.resizable = false;

ofCreateWindow(settings);
ofRunApp(new ofApp);
}

On OS X El Capitan it is possible to auto hide the OS top menu bar. But I am not able to move the OF window in to the now freed menu bar space.

On OS X Yosemite it is not possible to hide the menu bar unless you use ofFullscreen(), but hides all the other apps. With the fullscreen app in the background the menu bar starts showing again.

Did anyone find a solution for this problem?

thanks.

looks like i found a work around that works in OS X 10.10 and 10.11

basically start each app in fullscreen mode and then in setup set window shape and position.

in main.cpp

ofGLFWWindowSettings settings;
settings.windowMode = OF_FULLSCREEN;
settings.decorated = false;
settings.width = 1680/2;
settings.height = 1080/2;
settings.resizable = false;

ofCreateWindow(settings);
ofRunApp(new ofApp);

in ofApp.cpp

  ofSetWindowShape(1680/2, 1080/2);
  ofSetWindowPosition(1680/2, 0);
1 Like