Skip to content

Commit

Permalink
revert r5176 since grabs from #139 should take care of this
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@5396 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 8, 2014
1 parent bc146de commit 066cc04
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/xpra/client/ui_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1434,20 +1434,6 @@ def _process_new_common(self, packet, override_redirect):
def make_new_window(self, wid, x, y, w, h, metadata, override_redirect, client_properties, auto_refresh_delay):
client_window_classes = self.get_client_window_classes(metadata, override_redirect)
group_leader_window = self.get_group_leader(metadata, override_redirect)
#horrendous OSX workaround for OR windows to prevent them from being pushed under other windows:
#find a "transient-for" value using the pid to find a suitable window
#if possible, choosing the currently focused window (if there is one..)
pid = metadata.get("pid", 0)
if override_redirect and sys.platform=="darwin" and pid>0 and metadata.get("transient-for") is None:
tfor = None
for twid, twin in self._id_to_window.items():
if not twin._override_redirect and twin._metadata.get("pid")==pid:
tfor = twin
if twid==self._focused or self._focused is None:
break
if tfor:
log("%s: forcing transient for %s", sys.platform, twid)
metadata["transient-for"] = twid
window = None
for cwc in client_window_classes:
try:
Expand Down

0 comments on commit 066cc04

Please sign in to comment.