Google
  Web www.spinics.net

Re: Xlib and mouse events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


I tried xev and, correct me if I'm wrong, it can't get mouse clicks on other windows that the one it created itself.
I just made some tests and it can't even get mouse motions events on it, (it detects only mouse motions events on borders and titlebar) probably because my app is a JAVA one (using libVLC through JNA which il a lib that allows to run native code in JAVA).

Btw, xed behavior seems normal to me because, as we can read in the Xlib doc :
"Only one client at a time can select a ButtonPress event, which is associated with the event mask ButtonPressMask."

Since libVLC get these events, what I want to do seems impossible... :(



On Wed, Aug 20, 2008 at 1:10 PM, Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> wrote:
Benjamin BOUCHER, le Wed 20 Aug 2008 13:02:22 +0200, a écrit :
> I want to make a C program which capture all mouse events, not only those from
> a window I created myself, is it possible ?

You'll probably be happy reading the source code of xev.

Samuel





_______________________________________________
xorg mailing list
xorg@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/xorg

[X Forum]     [Devices]     [XFree86]     [XFree86 Newbie]     [Site Home]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Rubini]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]     [Linux Resources]

Powered by Linux