Пример #1
0
 def get_ui_info(self, proto, wids, *args):
     info = X11ServerBase.get_ui_info(self, proto, wids, *args)
     #now cursor size info:
     display = gtk.gdk.display_get_default()
     for prop, size in {"default" : display.get_default_cursor_size(),
                        "max"     : display.get_maximal_cursor_size()}.items():
         if size is None:
             continue
         info["cursor.%s_size" % prop] = size
     return info
Пример #2
0
 def get_ui_info(self, proto, wids, *args):
     info = X11ServerBase.get_ui_info(self, proto, wids, *args)
     #_NET_WM_NAME:
     wm = self._wm
     if wm:
         info["window-manager-name"] = wm.get_net_wm_name()
     #now cursor size info:
     display = gtk.gdk.display_get_default()
     pos = display.get_default_screen().get_root_window().get_pointer()[:2]
     info["cursor.position"] = pos
     for prop, size in {"default" : display.get_default_cursor_size(),
                        "max"     : display.get_maximal_cursor_size()}.items():
         if size is None:
             continue
         info["cursor.%s_size" % prop] = size
     return info
Пример #3
0
 def get_ui_info(self, proto, wids, *args):
     info = X11ServerBase.get_ui_info(self, proto, wids, *args)
     #_NET_WM_NAME:
     wm = self._wm
     if wm:
         info["window-manager-name"] = wm.get_net_wm_name()
     #now cursor size info:
     display = gtk.gdk.display_get_default()
     pos = display.get_default_screen().get_root_window().get_pointer()[:2]
     info["cursor.position"] = pos
     for prop, size in {
             "default": display.get_default_cursor_size(),
             "max": display.get_maximal_cursor_size()
     }.items():
         if size is None:
             continue
         info["cursor.%s_size" % prop] = size
     return info