micheleg / dash-to-dock

A dock for the Gnome Shell. This extension moves the dash out of the overview transforming it in a dock for an easier launching of applications and a faster switching between windows and desktops.
https://micheleg.github.io/dash-to-dock/
GNU General Public License v2.0
3.85k stars 462 forks source link

Warning when pressing keys on more than one device #908

Open terencode opened 5 years ago

terencode commented 5 years ago

I don't know how it's related but I get the following warnings spammed when I switch from pressing a key from my keyboard to pressing a key using my mouse and vice-versa :

mars 16 03:07:19 terence-arch org.gnome.Shell.desktop[1499]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
mars 16 03:07:19 terence-arch org.gnome.Shell.desktop[1499]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
mars 16 03:07:19 terence-arch org.gnome.Shell.desktop[1499]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
mars 16 03:07:19 terence-arch org.gnome.Shell.desktop[1499]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
micheleg commented 5 years ago

Why do you think this relates to dash-to-dock? I can't find any link.

terencode commented 5 years ago

Because this is only printed when the extension is enabled.

micheleg commented 5 years ago

Are you saying whenever you press a key or click on the mouse you get that logged? What shell/extension versions?

terencode commented 5 years ago

Should have added more information, sorry. ArchLinux, using dash to dock master branch, gnome-shell 3. 32

What I mean is if you bind a button of your mouse to a keyboard key and alternate between pressing this mouse key and an other key on a real keyboard, you'll get those warnings.

micheleg commented 5 years ago

How would I bind a mouse button to a keyboard key, so that I can try to reproduce the issue?

terencode commented 5 years ago

Well you have to know if your mouse supports it. If it does and it's a well-known mouse, there is a chance you can use libratbag to bind one of its button to a keyboard key. Otherwise, I think sending a keystroke from two different devices should work too. E.g. 2 keyboards.

terencode commented 5 years ago

Trying to figure out what's going on, I can tell you that it's due to Main.wm.addKeybinding and that the number of time it's called is the number of warning you get when switching between two input devices

peterlobster commented 2 years ago

@micheleg I'm seeing this issue as well...no other plugins or extensions enabled, only d-t-d.

Aug 06 12:15:27 localhost gnome-shell[1707]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Aug 06 12:15:27 localhost gnome-shell[1707]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Aug 06 12:15:27 localhost gnome-shell[1707]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Aug 06 12:15:27 localhost gnome-shell[1707]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Aug 06 12:15:27 localhost gnome-shell[1707]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Aug 06 12:15:27 localhost gnome-shell[1707]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
Aug 06 12:15:27 localhost gnome-shell[1707]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Aug 06 12:15:27 localhost gnome-shell[1707]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Aug 06 12:15:27 localhost gnome-shell[1707]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Stranger-odua commented 1 year ago

I had the same problem. I temporarily managed to get rid of this problem. I switch off the toggle with keyboard shortcuts in dash to dock settings.