Skip to content

Commit

Permalink
#4318 desktop scaling was breaking pointer polling
Browse files Browse the repository at this point in the history
'get_mouse_position()' is only used for sending coordinates to the server, so we have to use the 'client-to-server' coordinate scaling methods
  • Loading branch information
totaam committed Aug 10, 2024
1 parent b095f26 commit e70e886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/client/gtk3/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_mouse_position(self) -> tuple[int, int]:
if not root:
return -1, -1
p = root.get_pointer()[-3:-1]
return self.sp(p[0] or 0, p[1] or 0)
return self.cp(p[0] or 0, p[1] or 0)


GObject.type_register(XpraClient)

0 comments on commit e70e886

Please sign in to comment.