Skip to content

Commit

Permalink
#1999 fixup r23570: don't send focus state for OR windows
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@24842 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 30, 2019
1 parent 4eb1931 commit 7cf3eb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/client/gtk_base/gtk_client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,10 @@ def window_state_updated(self, widget, event):
#if we're changing the maximized state
state_updates["maximized"] = bool(event.new_window_state & Gdk.WindowState.MAXIMIZED)
if event.changed_mask & Gdk.WindowState.FOCUSED:
state_updates["focused"] = bool(event.new_window_state & Gdk.WindowState.FOCUSED)
if not self.is_OR():
state_updates["focused"] = bool(event.new_window_state & Gdk.WindowState.FOCUSED)
else:
focuslog("OR window %i focus changed to: %s", self._id, bool(event.new_window_state & Gdk.WindowState.FOCUSED))
self.update_window_state(state_updates)

def update_window_state(self, state_updates):
Expand Down

0 comments on commit 7cf3eb3

Please sign in to comment.