Skip to content

Commit

Permalink
#4396 patching fails if there is a tray window
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 18, 2024
1 parent 3ecd828 commit 65eea92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xpra/client/mixins/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,9 @@ def _process_new_common(self, packet: PacketType, override_redirect):

def _find_pid_focused_window(self, pid: int, OR=False) -> int:
for twid, twin in self._id_to_window.items():
if twin._override_redirect != OR:
if twin.is_tray():
continue
if twin.is_OR() != OR:
continue
if twin._metadata.intget("pid", -1) == pid:
if OR or twid == self._focused:
Expand Down

0 comments on commit 65eea92

Please sign in to comment.