[PATCH 0/1] Fix xfce4-panel plugin size allocation
Viktor Odintsev
zakhams at gmail.com
Sun Mar 5 19:18:49 CET 2017
Each plugin on the panel takes at least 1 px as defined in panel-itembar.c:
if (G_UNLIKELY (child_len < 1))
child_len = 1;
With expandable plugins it leads to incorrect total length calculation.
The easiest way to reproduce it is to create a new panel with the following plugins:
1: Window buttons without handle
2: Expandable separator
3: Any other plugin to observe the bug (e.g. clock)
Without any open windows the first plugin will take 1px which wasn't taken into account on `expand_len_avail` calculation so the rest plugins will be shifted in 1 px.
This patch fixes this issue.
Viktor Odintsev (1):
Fix child size allocation
panel/panel-itembar.c | 34 +++++++++++++++++++++++++++-------
1 file changed, 27 insertions(+), 7 deletions(-)
--
2.12.0
More information about the Xfce4-dev
mailing list