5

[ubuntu] simulation of mouse clicks in ubuntu 11.10 using X11

view full story
linux-howto

http://ubuntuforums.org – Hi, When I had ubuntu 9.04 on my laptop, I had used a piece of code with which I could simulate mouse clicks using X11 libraries(it was working fine). I recently upgraded my ubuntu to 11.10 and now for some reason, the same piece of code is acting very wierd.. The click is simulated when the mouse pointer is on menu bar control buttons(minimize, maximize, close, etc.), but not when inside a window on an icon.. and right click is not simulated at all.. Here is the function that I use : Quote: void mouseClick(Display *display, Window root, int button) { XE (Hardware)