xlunch icon indicating copy to clipboard operation
xlunch copied to clipboard

Graphical bug when highlighting an icon that overlaps the scroll bar

Open CPCTC opened this issue 3 years ago • 3 comments

When an icon overlaps the scroll bar, the scroll bar gets a little messed up when the icon gets highlighted. The best way to reproduce this is to start xlunch in windowed mode, resize it (decrease width), then mouse over the rightmost icons.

Screenshots:

1 2 xlunch was invoked with xlunch --windowed < entries.dsv

CPCTC avatar Jan 14 '22 02:01 CPCTC

This can also be triggered regardless of window width when using --textafter, which is how I first discovered this.

CPCTC avatar Jan 14 '22 02:01 CPCTC

The bug is because the icons overlap the scrollbar, if you set the right border to be big enough to cover the scrollbar icons will flow to the next line instead of overlapping. I guess @Tomas-M forgot to update the layouting when he added the scrollbar. The whole feature is a bit under-developed compared to everything else in xlunch. You can't even hide (well you can by setting it's opacity to full) or decide where to place it..

PMunch avatar Jan 14 '22 09:01 PMunch

Yeah the scrollbar was just a quick hack for my particular use case. Patches to improve its customizability are more than welcome :)

Tomas-M avatar Jan 14 '22 09:01 Tomas-M