xpra icon
Bug tracker and wiki

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


Ticket #2242: tray-reconfigure-debug.patch

File tray-reconfigure-debug.patch, 2.8 KB (added by Antoine Martin, 2 years ago)

add warnings on all tray configure handlers

  • xpra/client/client_tray.py

     
    118118                    client_properties["screen"] = screen
    119119            #scale to server coordinates
    120120            sx, sy, sw, sh = self._client.crect(x, y, w, h)
    121             log("%s.reconfigure(%s) sending configure for geometry=%s : %s",
     121            log.warn("%s.reconfigure(%s) sending configure for geometry=%s : %s",
    122122                self, force_send_configure, geometry, (sx, sy, sw, sh, client_properties))
    123123            self._client.send("configure-window", self._id, sx, sy, sw, sh, client_properties)
    124124        if self._size!=(w, h):
  • xpra/x11/gtk_x11/tray.py

     
    290290        window.move_resize(x, y, w, h)
    291291        embedded_window = self.window_trays[window.client_window]
    292292        embedded_window.resize(w, h)
    293         log("system tray moved to %sx%s and resized to %sx%s", x, y, w, h)
     293        log.warn("system tray moved to %sx%s and resized to %sx%s", x, y, w, h)
    294294
    295295    def do_xpra_unmap_event(self, event):
    296296        tray_window = self.tray_windows.get(event.window)
  • xpra/x11/models/systray.py

     
    3737
    3838    def move_resize(self, x, y, width, height):
    3939        #Used by clients to tell us where the tray is located on screen
    40         log("SystemTrayModel.move_resize(%s, %s, %s, %s)", x, y, width, height)
     40        log.warn("SystemTrayModel.move_resize(%s, %s, %s, %s)", x, y, width, height)
    4141        self.client_window.move_resize(x, y, width, height)
    4242        self._updateprop("geometry", (x, y, width, height))
    4343        #force a refresh:
  • xpra/x11/server.py

     
    940940        return x, y, w, h
    941941
    942942    def _process_configure_window(self, proto, packet):
     943        log.warn("configure-window packet")
    943944        wid, x, y, w, h = packet[1:6]
    944945        window = self._lookup_window(wid)
    945946        if not window:
     
    977978                    if self._has_focus==wid:
    978979                        self._update_modifiers(proto, wid, modifiers)
    979980            if window.is_tray():
     981                traylog.warn("tray configure, skip_geometry=%s", skip_geometry)
    980982                assert self._tray
    981983                if not skip_geometry:
    982984                    traylog("tray %s configured to: %s", window, (x, y, w, h))