Tomas-M / xlunch

Graphical app launcher for X with minimal dependencies
http://xlunch.org
GNU General Public License v3.0
219 stars 37 forks source link

Graphical bug when highlighting an icon that overlaps the scroll bar #137

Open CPCTC opened 2 years ago

CPCTC commented 2 years ago

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 commented 2 years ago

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

PMunch commented 2 years ago

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..

Tomas-M commented 2 years ago

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