aboutsummaryrefslogtreecommitdiffstats
path: root/MainPanel.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-10-15 09:03:05 +0200
committerDaniel Lange <DLange@git.local>2021-10-15 09:03:05 +0200
commitc733b3f6130c70e100c21c4f77d8fd48db80622c (patch)
treefac3278283232938169f928fd3d3ab641d5c6c8e /MainPanel.c
parent4582ae87a0a0675d0756b93dcda052c533cd2c96 (diff)
parent30ce3b4c264c51c98f280e88e23792ff7deb2317 (diff)
downloaddebian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.gz
debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.bz2
debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.zip
Update upstream source from tag 'upstream/3.1.1'
Update to upstream version '3.1.1' with Debian dir c4b5e8f6455cfd05bffdaed787e2ebf5c7d9a632
Diffstat (limited to 'MainPanel.c')
-rw-r--r--MainPanel.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/MainPanel.c b/MainPanel.c
index e7033bf..07dc631 100644
--- a/MainPanel.c
+++ b/MainPanel.c
@@ -2,7 +2,7 @@
htop - ColumnsPanel.c
(C) 2004-2015 Hisham H. Muhammad
(C) 2020 Red Hat, Inc. All Rights Reserved.
-Released under the GNU GPLv2, see the COPYING file
+Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
@@ -61,8 +61,14 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
if (ch == KEY_RESIZE)
return IGNORED;
- /* reset on every normal key, except mouse events while mouse support is disabled */
- if (ch != ERR && (ch != KEY_MOUSE || this->state->settings->enableMouse))
+ /* reset on every normal key */
+ bool needReset = ch != ERR;
+ #ifdef HAVE_GETMOUSE
+ /* except mouse events while mouse support is disabled */
+ if (!(ch != KEY_MOUSE || this->state->settings->enableMouse))
+ needReset = false;
+ #endif
+ if (needReset)
this->state->hideProcessSelection = false;
if (EVENT_IS_HEADER_CLICK(ch)) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy