CoverflowAltTab icon indicating copy to clipboard operation
CoverflowAltTab copied to clipboard

Problem with xdotool

Open HanfordWu opened this issue 4 years ago • 7 comments

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!

HanfordWu avatar May 05 '20 15:05 HanfordWu

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.

mrtgenet avatar Dec 22 '20 19:12 mrtgenet

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

p91paul avatar Dec 23 '20 08:12 p91paul

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

mrtgenet avatar Dec 23 '20 08:12 mrtgenet

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 avatar Dec 23 '20 12:12 p91paul

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 avatar Apr 11 '21 13:04 p91paul

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

machitgarha avatar Apr 11 '21 13:04 machitgarha

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

p91paul avatar Apr 11 '21 20:04 p91paul