Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate prompts when combining center and list options (wayland) #289

Open
matt-allan opened this issue Aug 11, 2022 · 4 comments · May be fixed by #290
Open

Duplicate prompts when combining center and list options (wayland) #289

matt-allan opened this issue Aug 11, 2022 · 4 comments · May be fixed by #290

Comments

@matt-allan
Copy link

matt-allan commented Aug 11, 2022

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
Copy link
Author

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.

@ocfox
Copy link

ocfox commented Aug 11, 2022

Same
image

@matt-allan matt-allan linked a pull request Aug 12, 2022 that will close this issue
@Cloudef
Copy link
Owner

Cloudef commented Oct 27, 2022

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?

@ocfox
Copy link

ocfox commented Oct 28, 2022

Never meet this after last time.

Lyndeno added a commit to Lyndeno/nix-config that referenced this issue Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants