Comments by "Anony Mousse" (@anon_y_mousse) on "Finally Global Hotkeys Are Coming To Wayland!!!" video.

  1. I never really bothered to look into how X handles keyboard input, so I definitely need to do that. It would've made sense, to me anyway, if keyboard input only went to the app that currently has focus. Which as I understand it is how Wayland does it. However, if you set a global shortcut, it would've made sense to have a registry of callbacks for functionality and to have the main program, whatever it is in such a system, deliver messages to the individual programs. Like say opening a private browsing window in your browser of choice. Each installed browser could register that they can handle that functionality and tell the system how, as in calling the program with certain flags, and the user could configure it with the whole system configuration app and tell it which browser to use when you input that shortcut. If the individual programs request specific keyboard shortcuts, then that either means that changing them in-app, if the app even allows that, would require that it send a message back to the system to refresh things. That's a complicated mess. Although, if every shortcut combo, regardless of global or local scope, merely sent a message to a callback function, say by treating the program while it's running as a server and passing it messages, then shortcuts could even be configured custom per app without the app even having to know what they are. If anyone knows how they both work and want to clear this up for me and maybe explain some reasoning behind whatever decisions they made, have at it.
    1