summaryrefslogtreecommitdiffstats
path: root/MemorySwapMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-09-18 15:37:20 +0200
committerChristian Göttsche <cgzones@googlemail.com>2021-09-18 17:21:32 +0200
commitbdb015ffa36ebedadc2bc5266660182e49596f3d (patch)
tree320958e0578fc3473d340ba4bffb7e0b0a77ed3f /MemorySwapMeter.c
parent5000cefc138a8ca2c0a1dbef420cdb3a70116789 (diff)
Header: do not let multi-column meters expand to empty neighbors
Extending to right neighbors is intended for text meters with an overlong content, so the whole text is shown if possible. Multi column meters, like the combined memory and swap meter, position its text depending on the given total width; keep the position to the original assigned header slot. Short term resolution for #796
Diffstat (limited to 'MemorySwapMeter.c')
-rw-r--r--MemorySwapMeter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/MemorySwapMeter.c b/MemorySwapMeter.c
index ffd57331..612549d1 100644
--- a/MemorySwapMeter.c
+++ b/MemorySwapMeter.c
@@ -95,6 +95,7 @@ const MeterClass MemorySwapMeter_class = {
},
.updateValues = MemorySwapMeter_updateValues,
.defaultMode = CUSTOM_METERMODE,
+ .isMultiColumn = true,
.name = "MemorySwap",
.uiName = "Memory & Swap",
.description = "Combined memory and swap usage",

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