Exemplo n.º 1
0
 def handle_ConfigureRequest(self, e):
     '''
     tylko dla okienka root!
     '''
     # It's not managed, or not mapped, so we just obey it.
     cw = xcb.xproto.ConfigWindow
     args = {}
     if e.value_mask & cw.X:
         args["x"] = max(e.x, 0)
     if e.value_mask & cw.Y:
         args["y"] = max(e.y, 0)
     if e.value_mask & cw.Height:
         args["height"] = max(e.height, 0)
     if e.value_mask & cw.Width:
         args["width"] = max(e.width, 0)
     if e.value_mask & cw.BorderWidth:
         args["borderwidth"] = max(e.border_width, 0)
     w = Window(orion.conn, e.window, self)
     w.configure(**args)
Exemplo n.º 2
0
 def __handle_map_request(self, e):
     w = Window(orion.conn, e.wid)
     c = self.manage(w)
     if c and (not c.group or not c.group.screen):
         return
     w.map()