LemonBoy / bar

A featherweight, lemon-scented, bar based on xcb
MIT License
1.62k stars 194 forks source link

Persistent hidden clickable areas #160

Closed alexozer closed 8 years ago

alexozer commented 8 years ago

Consider the following script, lemontest.sh;

#!/bin/bash

echo '%{A:area0:}Area 0    %{A}%{A:area1:}Area 1%{A}'
echo '%{A:area0:}Area 0    %{A}'

sleep 100

And its execution: ./lemontest.sh | lemonbar

lemonbar shows the text "Area 0" and outputs "area0" to stdout when clicked, but when the empty region to the right of "Area 0" is clicked, lemonbar outputs "area1" even though this clickable area has been removed.

I've found other more complex inputs which remove clickable areas in a similar way, and some of these cause lemonbar to output even stranger things, such as newlines and '}' symbols. I could try to provide these if necessary.

LemonBoy commented 8 years ago

I managed to reproduce the issue and fix it, please let me know if that's enough :)

alexozer commented 8 years ago

Seems fixed, thanks!