Example #1
0
def main():
    try:
        from xpra.x11.gtk_x11.gdk_display_source import init_gdk_display_source
        init_gdk_display_source()
    except:
        pass
    from xpra.platform.gui import main
    main()
Example #2
0
def main():
    try:
        from xpra.x11.gtk2 import gdk_display_source
        assert gdk_display_source
    except:
        pass
    from xpra.platform.gui import main
    main()
Example #3
0
def main():
    try:
        from xpra.x11.gtk2 import gdk_display_source
        assert gdk_display_source
    except:
        pass
    from xpra.platform.gui import main
    main()
Example #4
0
        log("root_prop_changed(%s, %s)", obj, prop)
        if prop == "RESOURCE_MANAGER":
            rm = self.get_resource_manager()
            if rm is not None:
                self.client.send("server-settings", {"resource-manager": rm})
        elif prop == "_NET_WORKAREA":
            self.client.screen_size_changed("from %s event" %
                                            self._root_props_watcher)
        elif prop == "_NET_CURRENT_DESKTOP":
            self.client.workspace_changed("from %s event" %
                                          self._root_props_watcher)
        elif prop in ("_NET_DESKTOP_NAMES", "_NET_NUMBER_OF_DESKTOPS"):
            self.client.desktops_changed("from %s event" %
                                         self._root_props_watcher)
        else:
            log.error("unknown property %s", prop)


def main():
    try:
        from xpra.x11.gtk_x11.gdk_display_source import init_gdk_display_source
        init_gdk_display_source()
    except:
        pass
    from xpra.platform.gui import main
    main()


if __name__ == "__main__":
    sys.exit(main())
Example #5
0
        return None

    def _handle_root_prop_changed(self, obj, prop):
        log("root_prop_changed(%s, %s)", obj, prop)
        if prop=="RESOURCE_MANAGER":
            rm = self.get_resource_manager()
            if rm is not None:
                self.client.send("server-settings", {"resource-manager" : rm})
        elif prop=="_NET_WORKAREA":
            self.client.screen_size_changed("from %s event" % self._root_props_watcher)
        elif prop=="_NET_CURRENT_DESKTOP":
            self.client.workspace_changed("from %s event" % self._root_props_watcher)
        elif prop in ("_NET_DESKTOP_NAMES", "_NET_NUMBER_OF_DESKTOPS"):
            self.client.desktops_changed("from %s event" % self._root_props_watcher)
        else:
            log.error("unknown property %s", prop)


def main():
    try:
        from xpra.x11.gtk2 import gdk_display_source
        assert gdk_display_source
    except:
        pass
    from xpra.platform.gui import main
    main()


if __name__ == "__main__":
    sys.exit(main())