def get_state(self):
        """Return wheter the window is maximized or not, or minimized or full screen."""
        state = self.stateHandler.get_full_property(self.display.intern_atom("_NET_WM_STATE"), 4)
#         if DEBUG_WM:
#             print "state_1.value", state.value
#             print "max vert", self.display.intern_atom("_NET_WM_STATE_MAXIMIZED_VERT") ,self.display.intern_atom("_NET_WM_STATE_MAXIMIZED_VERT") in state.value
#             print "max horz", self.display.intern_atom("_NET_WM_STATE_MAXIMIZED_HORZ"), self.display.intern_atom("_NET_WM_STATE_MAXIMIZED_HORZ") in state.value
        if self.display.intern_atom("_NET_WM_STATE_MAXIMIZED_HORZ") in state.value and self.display.intern_atom("_NET_WM_STATE_MAXIMIZED_VERT") in state.value:
#             if DEBUG_WM:
#                 print MAXIMIZED
            return MAXIMIZED
        elif self.display.intern_atom("_NET_WM_STATE_HIDEN") in state.value:
#             if DEBUG_WM:
#                 print MINIMIZED
            return MINIMIZED
        elif self.display.intern_atom("_NET_WM_STATE_FULLSCREEN") in state.value:
#             if DEBUG_WM:
#                 print FULLSCREEN
            return FULLSCREEN
#         if DEBUG_WM:
#             print NORMAL
        return NORMAL
Return wheter the window is maximized or not, or minimized or full screen.
mcplatform.py