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

Flickering when adjusting tooltip size/updating candidates #27

Open
ianyepan opened this issue Feb 7, 2020 · 12 comments
Open

Flickering when adjusting tooltip size/updating candidates #27

ianyepan opened this issue Feb 7, 2020 · 12 comments

Comments

@ianyepan
Copy link

ianyepan commented Feb 7, 2020

First of all, thank you for this package -- I used vanilla company before, but it always messes up the line numbers display and fringes, and the posframe approach solves this completely!

Nevertheless, the responsiveness is not quite at the same level as vanilla company. During typing, the posframe flickers quite a lot to fit in new candidates or adjust the frame size, while vanilla company seems to be handling the tooltip much more efficiently without any flicker.

In terms of usability, I haven't experienced slowing-down while typing as mentioned in #17 , but rather mostly the flickering issue is my main concern.

For your reference, here's my simple configuration:

(use-package company-posframe
  :custom
  (company-posframe-show-metadata nil)
  (company-posframe-show-indicator nil)
  :config
  (company-posframe-mode +1))
@dgutov
Copy link
Contributor

dgutov commented Mar 13, 2020

What if you set x-wait-for-event-timeout to 0?

@dgutov
Copy link
Contributor

dgutov commented Apr 8, 2020

@ianpan870102 What's your OS? Please include the value of system-configuration-features as well.

If you're on macOS is particular, though, you might want to try the most recent build from the master branch.

@ianyepan
Copy link
Author

ianyepan commented Apr 9, 2020

Hi @dgutov , thanks for getting back.
I was originally on macOS, and setting x-wait-for-event-timeout didn't help much of the issue, sadly.
I have since moved to Windows + WSL with X11 GUI, and company-posframe doesn't work properly in that environment, so I've switched to vanilla company as of now.

@dgutov
Copy link
Contributor

dgutov commented Apr 9, 2020

I see.

FWIW, people report MobaXTerm working okay there: sebastiencs/company-box#76

@ianyepan
Copy link
Author

ianyepan commented Apr 9, 2020

Cheers! I am using VcXsrv at the moment. I'll give MobaXTerm a try as well.

@Yevgnen
Copy link

Yevgnen commented Dec 27, 2021

I don't have flickering in company-box but in company-posframe. Did you fix this? @dgutov

@dgutov
Copy link
Contributor

dgutov commented Dec 27, 2021

@Yevgnen Neither is my project, I was just helping to provide more info while also debugging child frame problems on emacs-devel.

#56 might be similar to your problem. I'm not sure why the author closed it.

@Yevgnen
Copy link

Yevgnen commented Dec 28, 2021

@dgutov I'm sorry, I @ed the wrong person... 😅 Thanks for pointing me there!

@tumashu
Copy link
Owner

tumashu commented Dec 28, 2021

@Yevgnen I think I have no way to find the reason of this problem at the moment, for I have no mac machine to test :-\

@tumashu
Copy link
Owner

tumashu commented Jan 10, 2022

@ianyepan try the newest posframe and (setq company-tooltip-minimum-width 40), or a bigger value, maybe useful.

@Yevgnen
Copy link

Yevgnen commented Jan 10, 2022

@tumashu Seems the issue has been fixed here, thank you!

@zhenhua-wang
Copy link

I can still experience flickering in pgtk built. Setting pgtk-wait-for-event-timeout to 0 solves the problem for me...

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

No branches or pull requests

5 participants