petergunn
|
2008-01-19
, 19:49
|
Posts: 47 |
Thanked: 10 times |
Joined on Dec 2007
|
#11
|
|
2008-01-19
, 20:01
|
|
Posts: 3,096 |
Thanked: 1,525 times |
Joined on Jan 2006
@ Michigan, USA
|
#12
|
Just an idea but wouldn't setting the cursor after finding root work?
Code:root = DefaultRootWindow(display); // line 111 Cursor cursor=XCreateFontCursor(display,XC_arrow); XDefineCursor(display,root,cursor);
|
2008-01-19
, 20:20
|
Posts: 81 |
Thanked: 12 times |
Joined on Nov 2007
@ Bucuresti
|
#13
|
|
2008-01-19
, 20:28
|
Posts: 47 |
Thanked: 10 times |
Joined on Dec 2007
|
#14
|
|
2008-01-19
, 21:50
|
Posts: 8 |
Thanked: 5 times |
Joined on Jan 2008
|
#15
|
event.value * 10
|
2008-01-20
, 01:14
|
|
Posts: 3,096 |
Thanked: 1,525 times |
Joined on Jan 2006
@ Michigan, USA
|
#16
|
damn, i've just realized that i've uploaded an old version of the mouse polling program, you should obviously remove the
which is wrong.Code:event.value * 10
I'm not at home i'll try to upload a better version without this buggy multiplier.
Thanks for the feedbacks. I'll try to make update as soon as possible
|
2008-01-20
, 03:55
|
Posts: 47 |
Thanked: 10 times |
Joined on Dec 2007
|
#17
|
I also noticed when my mouse was turned off the application spiked and held at 100%
int br = read(fd, &event, sizeof (event)); if (br == -1) // this whole block is currently superfluous { if (errno == EAGAIN) { usleep(10000); continue; } // new else { // need a plan - something bad happened } } if (br != sizeof (event)) { usleep(10000); continue; } // new
|
2008-01-25
, 14:56
|
|
Posts: 716 |
Thanked: 236 times |
Joined on Dec 2007
|
#19
|
|
2008-01-29
, 04:09
|
Posts: 1,213 |
Thanked: 356 times |
Joined on Jan 2008
@ California and Virginia
|
#20
|