Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/x/p/xpybutil-HEAD/examples/inactive-window-transparent.py   xpybutil(Download)
def client_is_normal(client):
    wtype = ewmh.get_wm_window_type(client).reply()
    if not wtype or wtype[0] == util.get_atom('_NET_WM_WINDOW_TYPE_NORMAL'):
        return True
    return False

src/p/y/pytyle3-HEAD/pt3/client.py   pytyle3(Download)
    def unmaximize(self):
        vatom = util.get_atom('_NET_WM_STATE_MAXIMIZED_VERT')
        hatom = util.get_atom('_NET_WM_STATE_MAXIMIZED_HORZ')
        ewmh.request_wm_state_checked(self.wid, 0, vatom, hatom).check()
 
        if self.saved_state:
            fullymaxed = False
            vatom = util.get_atom('_NET_WM_STATE_MAXIMIZED_VERT')
            hatom = util.get_atom('_NET_WM_STATE_MAXIMIZED_HORZ')