mirror of https://github.com/xzeldon/htop.git
Action: drop resize callback
The supervising ScreenManager will resize all Panels
This commit is contained in:
parent
8c8149d146
commit
eb6f8d569d
7
Action.c
7
Action.c
|
@ -189,12 +189,6 @@ static Htop_Reaction actionSetSortColumn(State* st) {
|
||||||
return reaction | HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;
|
return reaction | HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Htop_Reaction actionResize(State* st) {
|
|
||||||
clear();
|
|
||||||
Panel_resize(st->panel, COLS, LINES - (st->panel->y) - 1);
|
|
||||||
return HTOP_REDRAW_BAR;
|
|
||||||
}
|
|
||||||
|
|
||||||
static Htop_Reaction actionSortByPID(State* st) {
|
static Htop_Reaction actionSortByPID(State* st) {
|
||||||
return Action_setSortKey(st->settings, PID);
|
return Action_setSortKey(st->settings, PID);
|
||||||
}
|
}
|
||||||
|
@ -682,5 +676,4 @@ void Action_setBindings(Htop_Action* keys) {
|
||||||
keys[KEY_F(10)] = actionQuit;
|
keys[KEY_F(10)] = actionQuit;
|
||||||
keys[KEY_F(18)] = actionExpandCollapseOrSortColumn;
|
keys[KEY_F(18)] = actionExpandCollapseOrSortColumn;
|
||||||
keys[KEY_RECLICK] = actionExpandOrCollapse;
|
keys[KEY_RECLICK] = actionExpandOrCollapse;
|
||||||
keys[KEY_RESIZE] = actionResize;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue