Abstract resize handling by adding a new Htop reaction

This commit is contained in:
Christian Göttsche
2021-08-21 20:48:45 +02:00
committed by BenBE
parent b9e69223d0
commit 68f2bfea61
5 changed files with 11 additions and 5 deletions

View File

@ -243,6 +243,10 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) {
if (result & REDRAW) {
force_redraw = true;
}
if (result & RESIZE) {
ScreenManager_resize(this);
force_redraw = true;
}
if (result & RESCAN) {
rescan = true;
sortTimeout = 0;