Skip to content

Commit

Permalink
fix shadow pointer bounds calculations (the position is already relat…
Browse files Browse the repository at this point in the history
…ive here)

git-svn-id: https://xpra.org/svn/Xpra/trunk@20162 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 21, 2018
1 parent 659e99b commit dd2261d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xpra/server/shadow/gtk_shadow_server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ def _adjust_pointer(self, proto, wid, pointer):
wx, wy, ww, wh = window.geometry
#or maybe the pointer is off-screen:
x, y = pointer
ax = x+wx
ay = y+wy
if ax<0 or ax>=ww or ay<0 or ay>=wh:
if x<0 or x>=ww or y<0 or y>=wh:
self.suspend_cursor(proto)
return None
self.restore_cursor(proto)
ax = x+wx
ay = y+wy
return ax, ay

def get_pointer_position(self):
Expand Down

0 comments on commit dd2261d

Please sign in to comment.