How to disable window resizing?

My problem is that I want to disable the window resizing, to achieve it I used following code in the ofApp::update:

  w = ofGetWidth();
  h = ofGetHeight();

  if (w != 540 || h != 740) ofSetWindowShape(540, 740);

Sadly it does not effect. How can I completely disable window resizing? I was looking for it in the documentation, but I couldn’t find it.
I am using Arch Linux but I do not think it is connected with the OS.

Thanks in advance for any sort of help.

in you main.cpp:

int main(){
ofGLFWWindowSettings settings;
settings.resizable = false;
return ofRunApp(new ofApp);
settings.width = 1024;
settings.height = 768;

if you are using 0.9.8 or:

settings.setSize(1024, 768);

if you are using the nightly builds (0.10 or greater in the future)