Skip to content

Commit

Permalink
#799: group by window class before grouping by pid, allows xterms to …
Browse files Browse the repository at this point in the history
…be grouped together despite being different processes

git-svn-id: https://xpra.org/svn/Xpra/trunk@8626 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 5, 2015
1 parent e5c1ea2 commit 846a1f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xpra/client/gtk2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,14 @@ def get_group_leader(self, metadata, override_redirect):
return group_leader_window
reftype = "xid"
ref = leader_xid
if ref<0:
reftype = "pid"
ref = pid
if ref<0:
ci = metadata.strlistget("class-instance")
if ci:
reftype = "class"
ref = "|".join(ci)
elif pid>0:
reftype = "pid"
ref = pid
else:
#no reference to use! invent a unique one for this window:
#(use its wid)
Expand Down

0 comments on commit 846a1f1

Please sign in to comment.