Skip to content

Commit

Permalink
#2723 only trigger focus logic if the newly mapped window has top lev…
Browse files Browse the repository at this point in the history
…el focus

git-svn-id: https://xpra.org/svn/Xpra/trunk@26082 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 11, 2020
1 parent 7f371af commit 84dd2c3
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 @@ -1710,7 +1710,10 @@ def process_map_event(self):
#we may have cleared the backing, so we must re-create one:
self._set_backing_size(w, h)
if not self._override_redirect:
self.idle_add(self._focus_change, "initial")
htf = self.has_toplevel_focus()
focuslog("mapped: has-toplevel-focus=%s", htf)
if htf:
self._client.update_focus(self._id, htf)

def get_window_frame_size(self):
frame = self._client.get_frame_extents(self)
Expand Down

0 comments on commit 84dd2c3

Please sign in to comment.