-
Notifications
You must be signed in to change notification settings - Fork 171
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
scrolling artifacts on Windows after some idle time #619
Comments
These look similar to the artifacts I see on Linux as a result of display scaling. Is display scaling set to 100%? Does this issue persist with 100% display scaling? I haven't seen this issue, but I will keep an eye out. If you can provide deterministic steps to reproduce the issue, that would be helpful. |
Yeah, the Windows display scale is 100% and the screen resolution is set to |
@jgehrig I think I can reproduce this issue now. It has something to do with the mouse wheel setting.
I am also confused that placing the mouse cursor on the nvim-qt window will activate it so that I can use mouse scroll to move the cursor inside nvim-qt. I thought that only after clicking the nvim-qt window, will we be able to activate it and use the mouse wheel to scroll. |
I can't quite reproduce the exact scenario, but I see similar issues when the cursor "bounces" off the screen edge in an inactive state. The issue appears on Linux/Windows with 100% scaling. The cursor outline disappears only after a "bounce" off the screen edge. Recorded with ScreenToGif. Do you think this could be the cause of your display artifacts? If not, maybe they are related...
That is odd... Qt sends mouse scroll event to inactive windows. There is probably an OS setting somewhere. Linux behaves the same way on my computer. |
I think they are similar if not the same issue. The solid cursor shape becomes hollow. When you scroll the mouse wheel, it produces the display artifacts. |
My screen capture is scrolled with the mouse wheel too. It sounds similar, but not exactly the same. I will take a look at the screen edge case some time. Maybe that case will provide some insight for both cases. |
The logic for cursor rendering is straightforward; active cursors are inverted and inactive cursors are printed as a empty rectangle. I suspect this is a bug in Qt's rendering engine... Can you try adjusting the scaling factor to see if this issue persists? |
I suspect this is a bug in Qt... Did you make the changes via It would be useful to know which version of Qt this was built against. It is a shame you can't use #616 yet. It would be nice to know if this scenario behaves differently for different versions of Qt, if you can build the app from source. |
No, I change the scale in Windows 10 settings in Sorry, I can not build this from source. It is a work computer and I have neither qt or MSVC installed... The Nvim-qt I am currently using is bundled with Neovim, and the neovim version is (from
|
I have got scrolling artifacts on the screen on Windows after nvim-qt has been idle for some time.
See the white vertical line in the blow image.
Clicking mouse cursor in the screen will update the screen and clear the artifacts. I have not observed this for previous versions of nvim-qt. This happens only recently.
The nvim-qt is bundled with nvim nightly version: NVIM v0.5.0-172-g1ff5b60cb
The text was updated successfully, but these errors were encountered: