swayfx/swaybar
Ludvig Michaelsson d6ac30753d swaybar: don't expand separator_block_width if separator is false
When swaybar receives the following JSON body

    [
        {
            "full_text": "foo",
            "separator": false,
            "separator_block_width": 0
        },
        {
            "full_text": "bar"
        }
    ]

it should not draw any separator or any space between the two blocks.
However, since swaybar calculates that separator_block_width
0 is too small to fit any configured separator, it will override the
separator_block_width with some non-zero value. This patch changes
that such that the necessary separator_block_width is only expanded if
the block has 'separator: true'.

This should be in line to what i3 does, as its documentation of the
i3bar protocol for separator states that "[...] if you disable the
separator line, there will still be a gap after the block, unless you
also use separator_block_width".
2020-10-12 16:02:41 +02:00
..
tray tray: track SNI callbacks 2020-03-30 17:31:00 +02:00
bar.c swaybar: ensure correct init order for status_line 2020-06-12 14:45:40 +02:00
config.c Add support for workspace_min_width bar option. 2020-10-11 19:12:42 +02:00
i3bar.c swaybar: fix i3bar relative coordinates when scaling is used 2020-02-10 18:58:09 +01:00
input.c swaybar: Fix scrolling with precise trackpads 2020-04-28 21:46:37 +02:00
ipc.c Add support for workspace_min_width bar option. 2020-10-11 19:12:42 +02:00
main.c swaybar: prevent signal handler from firing during termination 2019-02-15 14:09:14 +00:00
meson.build Removed unused wlroots dependency for sway(bg|bar|msg|nag) 2019-01-21 13:04:15 -05:00
render.c swaybar: don't expand separator_block_width if separator is false 2020-10-12 16:02:41 +02:00
status_line.c swaybar: allow status line cleanup to proceed when hidden 2020-07-22 09:40:37 +02:00
swaybar-protocol.7.scd Document required '\n' in swaybar-protocol 2020-08-04 10:39:29 +02:00