diff options
author | Bert Wesarg <bert.wesarg@googlemail.com> | 2020-08-26 22:03:04 +0200 |
---|---|---|
committer | Bert Wesarg <bert.wesarg@googlemail.com> | 2020-08-26 22:03:11 +0200 |
commit | 94b8c2e714e740639f0c345e9df5b6de7cbe966a (patch) | |
tree | 3ee82b2af2ab3d38b6e4b07f3994516aac72f742 /AffinityPanel.c | |
parent | df7e4fcdc0f36d2d1fc3941c0e68a72620c68a0f (diff) |
fix width of `AffinitPanel`
The panel size of 15 includes the gap to the next panel, thus use 14 as
the minimum size and let the caller of `AffinityPanel_new` handle the
gap.
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r-- | AffinityPanel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c index 7accb2ab..e95b381e 100644 --- a/AffinityPanel.c +++ b/AffinityPanel.c @@ -352,7 +352,9 @@ Panel* AffinityPanel_new(ProcessList* pl, Affinity* affinity, int* width) { Panel_init(super, 1, 1, 1, 1, Class(MaskItem), false, FunctionBar_new(AffinityPanelFunctions, AffinityPanelKeys, AffinityPanelEvents)); this->pl = pl; - this->width = 15; + /* defaults to 15, this also includes the gap between the panels, + * but this will be added by the caller */ + this->width = 14; this->cpuids = Vector_new(Class(MaskItem), true, DEFAULT_SIZE); |