i3 / i3

A tiling window manager for X11
https://i3wm.org/
BSD 3-Clause "New" or "Revised" License
9.5k stars 780 forks source link

Prevent keys not configured to operate from working while running modes. #4932

Open 2024-jcmljunior opened 2 years ago

2024-jcmljunior commented 2 years ago

I'm submitting a…

[ ] Bug
[x] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

image When I'm going to try to use a mode such as browse mode. pressing undefined keys causes other applications to receive information from those keys.

Desired Behavior

I would like that after a mode is triggered, the shortcuts behave in isolation. that is, without affecting other parts of the system.

Impact

[ ] This feature requires new configuration and/or commands
How will I know this? But thinking simply. The current behavior of the mode is: when activated, nothing happens and the mode waits for a key to be pressed before executing a function. Having that in mind. it would have to have a key mapping so that everything that was different from the applied settings could be rejected and thus prevent something like what was presented in the attached image from happening.

Environment

Output of i3 --moreversion 2>&-:

i3 version: 
Binary i3 version:  4.20.1 (2021-11-03) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.20.1 (2021-11-03) (pid 2265)
- Linux Distribution & Version:
- Gentoo
- Are you using a compositor (e.g., xcompmgr or compton):
- Picom
i3bot commented 2 years ago

Please note that new features which require additional configuration will usually not be considered. We are happy with the feature set of i3 and want to focus in fixing bugs instead. We do accept feature requests, however, and will evaluate whether the added benefit (clearly) outweighs the complexity it adds to i3.

Keep in mind that i3 provides a powerful way to interact with it through its IPC interface: https://i3wm.org/docs/ipc.html.

Airblader commented 2 years ago

How will I know this?

The answer is "Yes, it does require new configuration", because we cannot break the existing behavior that many users rely on.

2024-jcmljunior commented 2 years ago

Thinking more about it. I also agree with you.

2024-jcmljunior commented 2 years ago

In case you have any doubts about this, I have a small video snippet showing the problem during some tests. https://youtu.be/p69RXfMbuEA