xpra icon
Bug tracker and wiki

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

Opened 5 years ago

Closed 4 years ago

Last modified 6 months ago

#1243 closed enhancement (fixed)

add unique window identifier

Reported by: ccxcz Owned by: ccxcz
Priority: major Milestone: 1.0
Component: client Version: trunk
Keywords: Cc:


To allow restoring layout of windows after client reconnect it's necessary to uniquely identify each window.
One such way would be to extend formatting of --title to add @windowid@ to show id of the window on the server.
It would also be useful to add such formatting capabilities to window class and instance strings (WM_CLASS) on which windowmanagers often classify the windows.

Change History (4)

comment:1 Changed 5 years ago by Antoine Martin

Owner: changed from Antoine Martin to ccxcz

I think we can easily add support for:

  • xid (X11 window id)
  • wid (xpra's window id, starts at 1, incremented for each window)

These could be supported too:

  • command (WM_COMMAND)
  • wm-class (WM_CLASS)
  • role (WM_ROLE)

But since they are already forwarded, I don't understand why the window manager does not distinguish the windows already using these properties.

I would not want to start modifying the wm-class, I think that will create more problems than it solves.

comment:2 Changed 5 years ago by Antoine Martin

After looking at the code, I realized that all the attributes are already available for substitution, the only one that needed to be added was "windowid". r12946 does that.

Please close if this works for you.

comment:3 Changed 4 years ago by Antoine Martin

Milestone: future1.0
Resolution: fixed
Status: newclosed

Not heard back, closing.

comment:4 Changed 6 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1243

Note: See TracTickets for help on using tickets.