Skip to content

Commit

Permalink
prevent python3 error "unorderable types": ensure we have non-zero in…
Browse files Browse the repository at this point in the history
…ts before comparing them

git-svn-id: https://xpra.org/svn/Xpra/trunk@6205 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 27, 2014
1 parent 634b891 commit a6ae531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/ui_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a6ae531

Please sign in to comment.