bemenu icon indicating copy to clipboard operation
bemenu copied to clipboard

Inconsistent starting cursor point under Wayland

Open firecat53 opened this issue 3 years ago • 3 comments

I'm having an odd and somewhat random issue where the initial starting selection for long lists (for example j4-dmenu-desktop --dmenu=bemenu )will not be the first item even when -I 0 is set. This only seems to happen under Wayland, not X.

~ $ echo $BEMENU_OPTS
-i -I 0 -w --nf #c6c6c6 --af #c6c6c6 --nb #242322 --ab #242322 --hb #4682b4 --hf #c6c6c6 --tf #c6c6c6 -l 25 --fn 'SauceCodePro Nerd Font 17' --scrollbar autohide
~ $ echo $BEMENU_BACKEND
wayland
~ $ bemenu --version
bemenu v0.6.10

Sometimes if I add a -l 11 or some similar smaller value it will again select the initial item, but that seems to be almost random.

Running Sway on Fedora 36.

It's really annoying, because even as I'm testing it, it will suddenly start working correctly :frowning_face: . I wanted to provide a screen shot, but as I dragged my cursor to select the area, the bemenu cursor was also dragged back up to the top of the screen!

Let me know if I can provide other information. Thanks!

firecat53 avatar Aug 01 '22 18:08 firecat53

Same for me. What I noticed is that reducing the font size to very small values most of the time makes the issue go away.

omgold avatar Aug 09 '22 17:08 omgold

I guess I found the reason, at least in my case.

When the mouse cursor ist placed at a point covered by the bemenu window/frame at the time the menu is opened, the menu entry at this point is selected instantly.

I would prefer it only being selected on the first mouse movement, as this behavior is rather inconvenient, when working only with the keyboard.

omgold avatar Aug 15 '22 11:08 omgold

Ah, yes, you're right. I never noticed before, but if the mouse is anywhere on the same level as the menu it will highlight the item at that position.

firecat53 avatar Aug 31 '22 03:08 firecat53