Well, if the <F11> is pressed and the function is called, it sets the wm_state to 'zoomed' and on <Esc> to 'normal', so it can be determined with your proposal. But in the case someone clicks on the Maximize or reduce area on the top right of the window, this isn't change the wm_state. So unfortunately there's no reliable info if the window is 'zoomed'/'maximized' or not.
Maybe i must find out how to bind this action of the mouse click. BBut what other additional events can also affect the window fullscreen? (E.g. minimize?)
I just whanted a reliable info about if the window is fullscreen or not. But it seems that there are different kinds of "fullscreen"s...
Maybe i must find out how to bind this action of the mouse click. BBut what other additional events can also affect the window fullscreen? (E.g. minimize?)
I just whanted a reliable info about if the window is fullscreen or not. But it seems that there are different kinds of "fullscreen"s...