]>
Commit | Line | Data |
---|---|---|
5a361116 JR |
1 | diff -up tigervnc-1.3.0/unix/xserver/hw/vnc/Input.cc.pointersync tigervnc-1.3.0/unix/xserver/hw/vnc/Input.cc |
2 | --- tigervnc-1.3.0/unix/xserver/hw/vnc/Input.cc.pointersync 2014-07-14 16:27:49.412251632 +0100 | |
3 | +++ tigervnc-1.3.0/unix/xserver/hw/vnc/Input.cc 2014-07-14 16:29:06.968643301 +0100 | |
4 | @@ -1,5 +1,5 @@ | |
5 | /* Copyright (C) 2009 TightVNC Team | |
6 | - * Copyright (C) 2009 Red Hat, Inc. | |
7 | + * Copyright (C) 2009, 2014 Red Hat, Inc. | |
8 | * Copyright 2013 Pierre Ossman for Cendio AB | |
9 | * | |
10 | * This is free software; you can redistribute it and/or modify | |
11 | @@ -202,6 +202,14 @@ void InputDevice::PointerMove(const rfb: | |
12 | ||
13 | const rfb::Point &InputDevice::getPointerPos(void) | |
14 | { | |
15 | + if (pointerDev != NULL) { | |
16 | + int x, y; | |
17 | + | |
18 | + GetSpritePosition (pointerDev, &x, &y); | |
19 | + cursorPos.x = x; | |
20 | + cursorPos.y = y; | |
21 | + } | |
22 | + | |
23 | return cursorPos; | |
24 | } | |
25 |