dsheeler / CoverflowAltTab

Coverflow like Alt-Tab replacement for Gnome-Shell
GNU General Public License v3.0
364 stars 90 forks source link

Problem with xdotool #127

Open HanfordWu opened 4 years ago

HanfordWu commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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

mrtgenet commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.

machitgarha commented 3 years ago

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

p91paul commented 3 years ago

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