Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with xdotool #127

Open
HanfordWu opened this issue May 5, 2020 · 7 comments
Open

Problem with xdotool #127

HanfordWu opened this issue May 5, 2020 · 7 comments

Comments

@HanfordWu
Copy link

I have xdotool installed, and I bind the key: alt+Tab in it.
After turn on convertflowAltTab, often "xdotool key alt+Tab" doesn't work, only work once in a while. I cannot find any solution about this, I come to ask, thank you if any help!

@mrtgenet
Copy link

Same problem for me, tried xdotool key --clearmodifiers alt+Tab and a bunch of other workarounds but it just won't work with coverflow alt-tab extension active.

@p91paul
Copy link
Collaborator

p91paul commented Dec 23, 2020

I'm not familiar with xdotool, what you would expect to happen, and what happens instead?

@mrtgenet
Copy link

xdotool emulates keyboard or mouse inputs, so xdotool key alt+Tab should act as if alt+Tab had been pressed on the keyboard (so switch to previous window) which works perfectly fine normally, but doesn't (i.e. nothing happens instead of switching to previous window) when Coverflow Alt-Tab extension is active

@p91paul
Copy link
Collaborator

p91paul commented Dec 23, 2020

Thank you. That's quite strange, considering the extension doesn't actually handle keypresses itself, instead it receives the switch-windows event. Have to look into it.

@p91paul
Copy link
Collaborator

p91paul commented Apr 11, 2021

Did some test and didn't manage to find a culprit.
The thing is: I reproduced the same behavior (xdotool not doing anything) even with this extension disabled.
My test was on wayland.
Considering this, I will close this issue since it's either in gnome, xdotool or something in the middle of them.

@p91paul p91paul closed this as completed Apr 11, 2021
@machitgarha
Copy link
Contributor

@p91paul xdotool is not supported on Wayland for security reasons. See this AskUbuntu question.

@p91paul
Copy link
Collaborator

p91paul commented Apr 11, 2021

I had limited success with this script on Xorg:

xdotool keydown  alt; sleep 0.3; xdotool key Tab; sleep 0.15; xdotool keyup alt

Apparently, something is wrong with this extension because without it alt tab is correctly triggered.

Only thing I get in the log is this:

g_source_remove: assertion 'tag > 0' failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants