mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Clamp mouse co-ords to be >= 0
This commit is contained in:
parent
7f9eba6c4d
commit
325de0d266
@ -165,6 +165,10 @@ class GRFBNetworkClient(rfb.RFBNetworkClient, gobject.GObject):
|
||||
self.send(pack('>BBHI', 4, down, 0, key))
|
||||
|
||||
def update_pointer(self, mask, x, y):
|
||||
if x < 0:
|
||||
x = 0
|
||||
if y < 0:
|
||||
y = 0
|
||||
self.send(pack('>BBHH', 5, mask, x, y))
|
||||
gobject.type_register(GRFBNetworkClient)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user