ssanthosh243 / semicomplete

Automatically exported from code.google.com/p/semicomplete
0 stars 0 forks source link

Mouse-click doesn't grab pointer XNextEvent #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. xdotool selectwindow behave %1 mouse-click getwindowpid 
2. click over any window
3.

What is the expected output? What do you see instead?
I'd expect to see the PID of the selected window, it returns no output. 

What version of the product are you using? On what operating system?
2.20101014.3063 , Ubuntu Linux

Please provide any additional information below.
No ButtonRelease event is getting caught by XNextEvent. 

Original issue reported on code.google.com by gilberto...@gmail.com on 28 Nov 2010 at 3:26

GoogleCodeExporter commented 9 years ago
Confirmed. I'm not sure why this isn't working. I'll dig some.

Original comment by jls.semi...@gmail.com on 3 Jan 2011 at 10:14

GoogleCodeExporter commented 9 years ago
This seems to be a bug (feature?) of X servers, I guess.

If I don't run a window manager, and only an xterm, and to this:

  xdotool search --onlyvisible ".*"  behave %@ mouse-click exec echo ok

Then I click any button on the root window, it works.

Seems like if anything is already listening for mouse events in a window that 
such events are not given to xdotool. That sucks.

I can try to hack around it by using the X11 RECORD extension.

Original comment by jls.semi...@gmail.com on 3 Jan 2011 at 10:26

GoogleCodeExporter commented 9 years ago
I can also reproduce this with xev(1), as well, which also does not see any 
Button events from other client windows.

Original comment by jls.semi...@gmail.com on 30 May 2011 at 5:43