keyd: "meta+click" does not work: "space = timeout(overload(meta, space), 1000, space)"

It seems that space+click is not meta+click when space+click is used in the following configuration. I noticed this because I tried to move (meta+leftclick) and resize (meta+rightclick) the swaywm window and could not.

$ keyd --version
keyd v2.3.0-rc (6581f36)
$
space = timeout(overload(meta, space), 1000, space)
keyd virtual device     xxxx:xxxx       space down
keyd virtual device     xxxx:xxxx       space up

Due to a glitch in the AUR, I have not been able to update to the latest version. https://aur.archlinux.org/packages/keyd-git Sorry if this has been resolved.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 40 (31 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks. Can you also include the libinput output?

It looks like you haven’t added your mouse id to your config file. I took a closer look at your earlier videos and looks like many of them have the same problem.

Can you try a40e3a489 (git fetch origin && git checkout a40e3a489) and compare it to e749310df?

I renamed the ~/.config/sway directory and rebooted the machine and it still occurred, so I don’t think it has anything to do with that.

https://user-images.githubusercontent.com/102382754/173308960-49e2a14c-aa01-4bf5-a89f-9350a3f1bcdc.mp4

If it has anything to do with it, it might be environment variables, etc. I’m running the following sway-run with greetd-tuigreet-bin I don’t think it would make any difference if I started it directly from agetty

I can’t take the time right now, but I’ll take a look in a few days.

$ cat /usr/local/bin/sway-run

#!/bin/sh

#Xwayland disable

# Session
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway
export XDG_CURRENT_SESSION=sway #https://zenn.dev/haxibami/articles/wayland-sway-install

source /usr/local/bin/wayland_enablement.sh

# wayvnc
WLR_BACKENDS=headless
WLR_LIBINPUT_NO_DEVICES=1

systemd-cat --identifier=sway sway $@
$ cat /usr/local/bin/wayland_enablement.sh
#!/bin/sh
export MOZ_ENABLE_WAYLAND=1
export CLUTTER_BACKEND=wayland
#export QT_QPA_PLATFORM=wayland-egl
#export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORM="wayland;xcb"
export ECORE_EVAS_ENGINE=wayland-egl
export ELM_ENGINE=wayland_egl
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
export NO_AT_BRIDGE=1
export WINIT_UNIX_BACKEND=x11
$ cat /etc/environment
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines

#####
# uim
#####
#export GTK_IM_MODULE='uim'
#export QT_IM_MODULE='uim'
#uim-xim &
#export XMODIFIERS='@im=uim'

#######
# fcitx
#######
# To use kitty
GLFW_IM_MODULE=ibus
# Arch Wiki EN.
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx

# GTK
#GTK2_RC_FILES=/usr/share/themes/base16-tomorrow-night/gtk-2.0/gtkrc
$

I would appreciate your assistance in tracking down the bug.

OK with pleasure👍

# space = timeout(overload(meta, space), 1000, space)

keyd virtual device     0fac:0ade       leftmeta down
keyd virtual device     0fac:0ade       leftmouse down

-event26  KEYBOARD_KEY            +242.686s     KEY_LEFTMETA (125) pressed
 event26  POINTER_BUTTON          +242.686s     BTN_LEFT (272) pressed, seat count: 1

-> meta and click timing are simultaneous

# space = overload(meta, space)

keyd virtual device     0fac:0ade       leftmeta down
keyd virtual device     0fac:0ade       leftmouse down

 event26  KEYBOARD_KEY            +7.513s       KEY_LEFTMETA (125) pressed
 event26  POINTER_BUTTON          +8.550s       BTN_LEFT (272) pressed, seat count: 1

-> Click after meta

https://user-images.githubusercontent.com/55499652/173173032-14b4136d-59b4-4f8a-9ab2-0960c17242cc.mp4