# A problem with knowing if a window is minimized

**URL:** <https://discourse.processing.org/t/a-problem-with-knowing-if-a-window-is-minimized/26476>\
**Category:** Libraries\
**Created:** [December 23, 2020, 3:16pm UTC](https://discourse.processing.org/t/a-problem-with-knowing-if-a-window-is-minimized/26476 "2020-12-23T15:16:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dacoconutchemist](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dacoconutchemist/32/12134_2.png) [@dacoconutchemist](https://discourse.processing.org/u/dacoconutchemist)\
**Post date:** [December 23, 2020, 3:16pm UTC](https://discourse.processing.org/t/a-problem-with-knowing-if-a-window-is-minimized/26476/1 "2020-12-23T15:16:28Z")

</div>

Hi, I am new to here. I need to know if the main window is minimised.  
Full problem: I have a multi window G4P project and if the main window is minimized, I want to minimize others(G4P windows), I want them to act as one window when minimizing and maximizing.  
I have found [this](https://forum.processing.org/two/discussion/1899/loading-images-in-g4p-windows) on the old forum, am not sure if this question has already appeared on the new forum. The problem is that [frame.getExtendedState()](https://forum.processing.org/two/discussion/1899/loading-images-in-g4p-windows) doesn’t work, I’m using Processing v 3.5.4.
