How to disable window maximization

Hey, I don’t know if it’s the best solution, but it seems to work:

void setup() {
  //for the background color
  colorMode(HSB, 10000, 10000, 10000);
  //Fullscreen "disables" the button
  fullScreen(P2D);
  //sets the size 
  surface.setSize(600, 600);
  //And so that the window is not on the top left, we put it in the middle
  surface.setLocation(displayWidth/2-width/2, displayHeight/2-height/2);
}
void draw() {
  background(millis()%10000, 10000, 10000);
}

I hope I could help you :slight_smile: