xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #775: show-colormap.diff

File show-colormap.diff, 955 bytes (added by Antoine Martin, 7 years ago)

shows what colormap windows are using

  • xpra/x11/gtk_x11/window.py

     
    529529        self._internal_set_property("role", self.prop_get("WM_WINDOW_ROLE", "latin1"))
    530530        for mutable in ["WM_NAME", "_NET_WM_NAME", "_NET_WM_WINDOW_OPACITY", "_NET_WM_DESKTOP"]:
    531531            self._call_property_handler(mutable)
     532        c = self.client_window.get_colormap()
     533        log.info("%s.get_colormap()=%s", self.client_window, c)
     534        if c:
     535            v = c.get_visual()
     536            d = {}
     537            for x in ("bits_per_rgb", "byte_order", "colormap_size", "depth", "type"):
     538                d[x] = getattr(v, x)
     539            log.info("visual=%s", d)
     540           
    532541
    533542    def _read_initial_X11_properties(self):
    534543        self._internal_set_property("has-alpha", X11Window.get_depth(self.client_window.xid)==32)