xpra icon
Bug tracker and wiki

Opened 17 months ago

Closed 4 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:

Description

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 (3)

comment:1 Changed 17 months 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 17 months 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 months ago by Antoine Martin

Milestone: future1.0
Resolution: fixed
Status: newclosed

Not heard back, closing.

Note: See TracTickets for help on using tickets.