Skip to content

Commit

Permalink
#1999: keep track of the last window we raised during a move_pointer …
Browse files Browse the repository at this point in the history
…and don't raise it again

git-svn-id: https://xpra.org/svn/Xpra/trunk@20890 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 31, 2018
1 parent e88ecaa commit 1f1f68f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xpra/x11/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def __init__(self, clobber):
self.repaint_root_overlay_timer = None
self.configure_damage_timers = {}
self._tray = None
self.last_raised = None
self.system_tray = False
self.global_menus = False
gobject.GObject.__init__(self)
Expand Down Expand Up @@ -1045,11 +1046,12 @@ def _set_client_properties(self, proto, wid, window, new_client_properties):
""" override so we can raise the window under the cursor
(gtk raise does not change window stacking, just focus) """
def _move_pointer(self, wid, pos, *args):
if wid>0:
if wid>0 and self.last_raised!=wid:
window = self._lookup_window(wid)
if not window:
mouselog("_move_pointer(%s, %s) invalid window id", wid, pos)
else:
self.last_raised = wid
mouselog("raising %s", window)
with xswallow:
window.raise_window()
Expand Down

0 comments on commit 1f1f68f

Please sign in to comment.