Hi, In all other terminals, enabling the 1000 mouse mode automatically disables the 1002 mode, and vice versa. Less importantly, in many of them (e.g. xterm) disabling either one disables the currently active one, whichever that is.
Tmux is, for one, and application that keeps switching between the two modes, sometimes by just enabling the new one without disabling the old. This, with the behavior of st, might lead to unexpected behavior. A very simple test case: enable tmux's mouse support by putting this in your .tmux.conf: setw -g mode-mouse on Start tmux, click & drag, then leave tmux. Mouse will still be enabled in st, while not in any other terminals. Obviously one might argue whether tmux's behavior is correct or not, but there might be other apps as well that behave this way, and I believe making st behave like other terminals is the safer and easier way to go. Trivial patch attached. Thanks, egmont
st-1000-1002.patch
Description: Binary data