xdotool does not work well if launched by a shortcut

Bug #1812367 reported by Jarno Suni
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xdotool (Ubuntu)
Confirmed
Undecided
Unassigned
xfce4-settings (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

If I run 'xdotool click 3' as a keyboard shortcut (in Xfce at least) it does not work as a right button click unless I add short delay by sleep command in a script before running xdotool:

sleep 0.2
xdotool click 3

Supposedly it works even better, if I release the shortcut keybinding before the other command:

xdotool keyup super+space
xdotool click 3
(if the key-binding is super+space)

These could even be combined in single xdotool command:

xdotool sleep 0.2 click 3

and

xdotool keyup super+space click 3
(if the key-binding is super+space)

I think it would fix this, if the shortcut manager could handle the keyup part.

Related xdotool issues in Git:
https://github.com/jordansissel/xdotool/issues/42
https://github.com/jordansissel/xdotool/issues/210

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xdotool 1:3.20150503.1-2
ProcVersionSignature: Ubuntu 4.4.0-141.167-generic 4.4.162
Uname: Linux 4.4.0-141-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Jan 18 11:29:52 2019
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-09-21 (1580 days ago)
InstallationMedia: Ubuntu-Studio 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.1)
SourcePackage: xdotool
UpgradeStatus: Upgraded to xenial on 2018-04-14 (279 days ago)

Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Jarno Suni (jarnos) wrote :

Issue with the --clearmodifiers seems to be fixed in v3.20160804.1 (https://github.com/jordansissel/xdotool/releases/tag/v3.20160804.1)

Devoting this bug report to the issue with launching xdotool by a shortcut.

description: updated
Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

Probably related to https://bugzilla.xfce.org/show_bug.cgi?id=7845 (key press vs. key release).

Jarno Suni (jarnos)
summary: - Issuing right button click by xdotool does not work as expected
+ xdotool does not work well if launched by a shortcut
Jarno Suni (jarnos)
description: updated
description: updated
Jarno Suni (jarnos)
description: updated
Jarno Suni (jarnos)
description: updated
no longer affects: xorg (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdotool (Ubuntu):
status: New → Confirmed
Changed in xfce4-settings (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.