LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Any one there help needed to get mouse event (https://www.linuxquestions.org/questions/programming-9/any-one-there-help-needed-to-get-mouse-event-711368/)

vibinlakshman 03-13-2009 10:50 AM

Any one there help needed to get mouse event
 
I've tried another thread , no one helped , once more ..

I need to know while right clicking , which is that system file get executing ..
eg: while right clicking in desktop or in any other window , one context menu get fired up , any one knows which is that line of code get executing

Is it something like any kernel module get called , !! a wild guess !!!!

SciYro 03-13-2009 12:18 PM

When the mouse gets pressed in the GUI, the X server sees it, finds which window should recieve notification of this event, then sends the event to the program thats listening for button events from that window. From there the program itself will draw the context menu, usually with the assistence from the GUI toolkit.

So no, I do not know what line of code will get executed as it will be diffrence for each program.


All times are GMT -5. The time now is 02:52 AM.