diff --git a/src/xpra/client/ui_client_base.py b/src/xpra/client/ui_client_base.py index 39cde479c1..66007ce9b0 100644 --- a/src/xpra/client/ui_client_base.py +++ b/src/xpra/client/ui_client_base.py @@ -731,7 +731,7 @@ def update_focus(self, wid, gotit): self.window_ungrab() self.do_force_ungrab(self._window_with_grab) self._window_with_grab = None - if self._focused!=wid and wid>0 and self._focused>0: + if wid and self._focused and self._focused!=wid: #if this window lost focus, it must have had it! #(catch up - makes things like OR windows work: # their parent receives the focus-out event)