mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
MainPanel: do not reset on disabled mouse events
Do not reset the hidden process selection (and hidden function bar) on mouse events, when mouse support is disabled.
This commit is contained in:
parent
c096712b8d
commit
bf7d98e7ac
@ -61,8 +61,8 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
|
||||
if (ch == KEY_RESIZE)
|
||||
return IGNORED;
|
||||
|
||||
/* reset on every normal key */
|
||||
if (ch != ERR)
|
||||
/* reset on every normal key, except mouse events while mouse support is disabled */
|
||||
if (ch != ERR && (ch != KEY_MOUSE || this->state->settings->enableMouse))
|
||||
this->state->hideProcessSelection = false;
|
||||
|
||||
if (EVENT_IS_HEADER_CLICK(ch)) {
|
||||
|
Loading…
Reference in New Issue
Block a user