mirror of https://github.com/xzeldon/htop.git
IncSet: do not resize on our own and do not search on resize
The supervising ScreenManager will resize all Panels. Also do not start the search on resize.
This commit is contained in:
parent
a3cced9fb6
commit
badeaf9e82
2
IncSet.c
2
IncSet.c
|
@ -174,7 +174,7 @@ bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue
|
||||||
doSearch = false;
|
doSearch = false;
|
||||||
}
|
}
|
||||||
} else if (ch == KEY_RESIZE) {
|
} else if (ch == KEY_RESIZE) {
|
||||||
Panel_resize(panel, COLS, LINES - panel->y - 1);
|
doSearch = (mode->index > 0);
|
||||||
} else {
|
} else {
|
||||||
if (mode->isFilter) {
|
if (mode->isFilter) {
|
||||||
filterChanged = true;
|
filterChanged = true;
|
||||||
|
|
|
@ -51,8 +51,12 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
|
||||||
|
|
||||||
Htop_Reaction reaction = HTOP_OK;
|
Htop_Reaction reaction = HTOP_OK;
|
||||||
|
|
||||||
|
/* Let supervising ScreenManager handle resize */
|
||||||
|
if (ch == KEY_RESIZE)
|
||||||
|
return IGNORED;
|
||||||
|
|
||||||
/* reset on every normal key */
|
/* reset on every normal key */
|
||||||
if (ch != ERR && ch != KEY_RESIZE)
|
if (ch != ERR)
|
||||||
this->state->hideProcessSelection = false;
|
this->state->hideProcessSelection = false;
|
||||||
|
|
||||||
if (EVENT_IS_HEADER_CLICK(ch)) {
|
if (EVENT_IS_HEADER_CLICK(ch)) {
|
||||||
|
|
Loading…
Reference in New Issue