clearmodifiers not working

202 views
Skip to first unread message

Hong-Leong Ong

unread,
Jun 1, 2010, 9:51:16 AM6/1/10
to xdotool-users
Hello Jordan,

Here's an anomaly that I observed with the use of "clearmodifiers".

Steps:
=====

1. type this command in a shell: xdotool key --clearmodifiers ctrl+l

2. hold down ALT modifier, then hit enter to run the above xdotool
command

3. command executed successfully

4. press the UP arrow key to bring back the same command: xdotool key
--clearmodifiers ctrl+l

5. hold down ALT modifier, then hit enter to run the above xdotool
command

6. command failed with the following error message:

X Error of failed request: BadValue (integer parameter out of range
for operation)
Major opcode of failed request: 145 (XTEST)
Minor opcode of failed request: 2 (X_XTestFakeInput)
Value in failed request: 0x0
Serial number of failed request: 33
Current serial number in output stream: 34

When I repeat the above again, it'll run successfully. But when I do
it again, it'll fail with the exact error message above.

In other words, the 1st, 3rd, 5th, 7th, ... runs will be successful
while the 2nd, 4th, 6th, 8th, ... runs will failed with the above
message.

Besides that, after running the above tests, somehow it seems that the
ALT modifier will be kept in a keydown state even when I'm not
pressing it. When I hit the TAB key alone, the window application
switcher will show up, as if I've pressed the ALT-TAB combo. Hitting
the ALT keys (tried both) will not clear the key-down state. Only way
out is to switch to a text based virtual terminal, e.g. CTRL-ALT-1,
then switch back using CTRL-ALT-7. That will clear the ALT modifier
state.

I'm on Ubuntu 10.04, running the compiled version of
xdotool-2.20100601.2912.tar.gz because the Ubuntu repo has a very old
version -- 20090330-1!

Any idea if this is normal?

Cheers,
hongleong

Jordan Sissel

unread,
Jun 3, 2010, 3:57:41 AM6/3/10
to hong...@gmail.com, xdotool-users

Seems like a bug. I can reproduce your symptoms by doing the following:

% while true; do xdotool key --clearmodifiers ctrl+l ; sleep 0.2; done

Then randomly hold alt and shift, or ctrl and shift. Sometimes it'll
report with this message:

X Error of failed request: BadValue (integer parameter out of range
for operation)

Major opcode of failed request: 144 (XTEST)


Minor opcode of failed request: 2 (X_XTestFakeInput)
Value in failed request: 0x0
Serial number of failed request: 33
Current serial number in output stream: 34

I'll try to debug.

-Jordan

> Cheers,
> hongleong
>
> --
> You received this message because you are subscribed to the Google Groups "xdotool-users" group.
> To post to this group, send email to xdotoo...@googlegroups.com.
> To unsubscribe from this group, send email to xdotool-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/xdotool-users?hl=en.
>
>

Jordan Sissel

unread,
Jun 23, 2010, 4:08:31 AM6/23/10
to hong...@gmail.com, xdotool-users

Howdy,

Figured it out. svn r2952 fixes this bug and it will be resolved in
the next release.

Thanks for the report! :)

-Jordan

Hong-Leong Ong

unread,
Jun 23, 2010, 7:35:44 AM6/23/10
to xdotool-users
Thanks much, Jordan. Look forward to the next release. :)

On Jun 23, 4:08 pm, Jordan Sissel <j...@semicomplete.com> wrote:
> On Thu, Jun 3, 2010 at 12:57 AM, Jordan Sissel <j...@semicomplete.com> wrote:
> > On Tue, Jun 1, 2010 at 6:51 AM, Hong-Leong  Ong <hongle...@gmail.com> wrote:
> >> Hello Jordan,
>
> >> Here's ananomalythat Iobservedwith theuseof "clearmodifiers".
> > % while true; do xdotool key --clearmodifiersctrl+l ; sleep 0.2; done
Reply all
Reply to author
Forward
0 new messages