bemenu icon indicating copy to clipboard operation
bemenu copied to clipboard

Duplicate prompts when combining center and list options (wayland)

Open matt-allan opened this issue 3 years ago • 4 comments

Version: v0.6.10 Compositor: Sway

When launching bemenu-run with the --center and --list options, after typing multiple copies of the prompt appear. This doesn't seem to happen if I use just the --center or --list options separately.

bemenu-run screenshot showing duplicate promps

The duplicate prompts seem to appear after typing a character that reduces the size of the list any increment below the --list value.

Edit: It seems like a race condition between the size of the window being re-calculated and the buffer being redrawn. If I run it under strace without writing the output to a log file the timing changes and the issue goes away.

matt-allan avatar Aug 11 '22 13:08 matt-allan

There's some discussion in #194 about how maybe the prompt shouldn't jump down as the # of results is reduced. I personally think that makes sense and it would prevent this issue from happening.

matt-allan avatar Aug 11 '22 14:08 matt-allan

Same image

ocfox avatar Aug 11 '22 16:08 ocfox

This is either repaint problem or the cairo drawing code does not draw into the space before the items. Pretty sure it's the latter. Does this affect X11?

Cloudef avatar Oct 27 '22 14:10 Cloudef

Never meet this after last time.

ocfox avatar Oct 28 '22 00:10 ocfox