]> git.sur5r.net Git - i3/i3/commit
i3-nagbar: Set button inner-width to the width of the label
authorTony Crisci <tony@dubstepdish.com>
Mon, 7 Oct 2013 16:06:28 +0000 (12:06 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 13 Oct 2013 16:02:39 +0000 (18:02 +0200)
commit8fe17407ffff1d0bbd0aa7787b382c882370dd85
treee673a079fc8a5afa58aabd6793ace44c93c77f48
parent1c0554564ac87e6c1bef9734abc63d0a01cf18fb
i3-nagbar: Set button inner-width to the width of the label

Use predict_text_width to find the width of the label and then account
for right padding when calculating the width of the button.
i3-nagbar/main.c