Changeset 30442 in vbox for trunk/src/VBox/Additions/x11/vboxmouse
- Timestamp:
- Jun 24, 2010 10:09:25 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63088
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse_15.c
r30432 r30442 55 55 #include <errno.h> 56 56 #include <fcntl.h> 57 #include <unistd.h> 57 58 58 59 #include "product-generated.h" … … 63 64 uint32_t cx, cy, fFeatures; 64 65 66 /* Read a byte from the device to acknowledge the event */ 67 char c; 68 read(pInfo->fd, &c, 1); 65 69 /* The first test here is a workaround for an apparent bug in Xorg Server 1.5 */ 66 70 if ( … … 79 83 cy = (cy * screenInfo.screens[0]->height) / 65535; 80 84 #endif 81 /* The X server is calling this function even if only a button was 82 * pressed. old_x/old_y seem to be not used by the server code. */ 83 if ( (uint32_t)pInfo->old_x != cx 84 || (uint32_t)pInfo->old_y != cy) 85 { 86 /* send absolute movement */ 87 xf86PostMotionEvent(pInfo->dev, 1, 0, 2, cx, cy); 88 pInfo->old_x = cx; 89 pInfo->old_y = cy; 90 } 85 /* send absolute movement */ 86 xf86PostMotionEvent(pInfo->dev, 1, 0, 2, cx, cy); 91 87 } 92 88 }
Note:
See TracChangeset
for help on using the changeset viewer.