pkkid / x11pygrid

Quickly move windows around the an X11 desktop
GNU General Public License v2.0
323 stars 41 forks source link

Key press events not received #11

Closed avaly closed 3 years ago

avaly commented 5 years ago

Does any one else experience that key presses are no longer received by pygrid?

I'm on Ubuntu 18.04.1 LTS, and it did work until recently.

pkkid commented 5 years ago

Still working for me on 18.04. Are you by any chance using Wayland?

avaly commented 5 years ago

TIL about Wayland.

It was appearantly running. I disabled it, but I still get no key press events in pygrid.

Any thoughts on how to debug this?

pkkid commented 5 years ago

Wayland is a display manager like X. So you are either running Wayland or X to display your the windows on your screen. It's a choice when you log into the OS after booting up. This app currently only works with X. Lets start by double checking that first. I suspect if you never knew what Wayland was, you are probably running X.

See here: https://itsfoss.com/switch-xorg-wayland/

avaly commented 5 years ago

I have disabled Wayland yesterday:

$ cat /etc/gdm3/custom.conf | grep wayland
WaylandEnable=false

$ ps ax | grep wayland
 5124 pts/0    S+     0:00 grep -i --color=auto wayland

$ echo $XDG_SESSION_TYPE
x11

I'm clearly running X now, yet I still can't get key events.

avaly commented 5 years ago

A few days ago, it started working again as expected. Although I haven't changed any setup on my laptop. :man_shrugging:

avaly commented 5 years ago

This is happening again for me on a fresh install of Ubuntu 18.04.2.

avaly commented 3 years ago

I'm still getting this behavior on a fresh install of Ubuntu 20.04.

avaly commented 3 years ago

It seems my issue was related to the accelerator key. I had previously configured it to <Ctrl><Mod2><Mod4>, which worked on Ubuntu 18.04 (on a different laptop). On my new laptop running Ubuntu 20.04, I had to modify this to <Ctrl><Mod4> for it to work when pressing Ctrl+Super.

pkkid commented 3 years ago

Glad you figured this out and thanks for documenting your notes here for future users.