Skip to content

Commit

Permalink
cannot follow a tray
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 12, 2023
1 parent 668a66c commit ba5af99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/client/gtk3/gtk_client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def setup_following(self) -> None:
#find a parent window we should follow when it moves:
follow = self._client.find_window(self._metadata, "transient-for") or self._client.find_window(self._metadata, "parent")
log("setup_following() follow=%s", follow)
if not follow:
if not follow or not isinstance(follow, Gtk.Window):
return
type_hint = self.get_type_hint()
log("setup_following() type_hint=%s, FOLLOW_WINDOW_TYPES=%s", type_hint, FOLLOW_WINDOW_TYPES)
Expand Down Expand Up @@ -1884,7 +1884,7 @@ def set_root_transient():
#gtk window is easier:
window = self._client._id_to_window.get(wid)
log("%s.apply_transient_for(%s) window=%s", self, wid, window)
if window:
if window and isinstance(window, Gtk.Window):
self.set_transient_for(window)

def cairo_paint_border(self, context, clip_area=None) -> None:
Expand Down

0 comments on commit ba5af99

Please sign in to comment.