GNOME Bugzilla – Bug 589382
jitter when clicking on gtksourceview component
Last modified: 2009-09-14 18:51:31 UTC
this report has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/gedit/+bug/402967 "The bug creates an ugly jitter when the gtksourceview component refreshes itself (note: this is what appears to happen). To reproduce the behaviour, one must have gedit open any sort of text file and have the window of some other application open. With focus on the other window, refocus on the gedit window and highlight some text. The text jitters slightly to the right. This now happens whenever you release a click on the source view widget. This behaviour stops as soon as the mouse passes over any other widget in the gedit window (file tab, toolbar, menubar)." "I'm not able to reproduce this with test-widget of the gtksourceview package only with gedit" Thanks,
I have the same problem. Let me add that the bug is font specific for me. It does happen with the Droid fonts, but not with the Liberation fonts.
I see the same jitter in gedit. Best way for me to reproduce: open gedit, enable option to show line numbers. Load a src file, a few hundred lines. Go to first line then scroll down with the cursor keys, line by line... about every 3rd line or so the line number bar get's a little bit wider then just shrinks down again. It's not fixed on line numbers: my moving a bit up and down the cursor the lines can shift. I tried with different font settings: my default font in gedit is 'Use system fixed width font (monospace 10)'
This is interesting, I was able to reproduce this problem. I didn't notice it until I had a few lines typed out in the text editor, but I definitely notice it.
Are you all guys using ubuntu? I was wondering if this could be due to some distro specific patch...
Testing on Ubuntu 9.10 and gedit 2.27.6 I can confirm as well. What I did to reproduce is open a multi-line text file and double click around to select different words/lines. The jitter becomes clearly noticeable.
Confirmed on Ubuntu 9.10, gedit 2.27.6. Got it to appear most consistently when the window loses focus, and then catches it again by clicking on the text area.
No ubuntu here. I'm running openSUSE 11.2 M7 at the moment, but same issue (as reported in comment #2)
Issue occurs under Ubuntu's Karmic. Video driver and compositing seems unrelated (can be duplicated under intl, nvidia, and radeon, and with compiz or metacity). karmic's fontconfig is currently the same version as jaunty's (which doesn't exhibit the problem), and so seems to be unrelated.
CC'ing behdad since he said he may have an idea what this is about...
I can reproduce this in windows.
Created attachment 143108 [details] [review] patch Ok, we finally managed to reproduce and understood the problem. This patch should fix the jittering and also adds a comment about what is going on with that code. If anyone could test and verify that things work properly, it would be very appreciated.
I pushed the patch to git after some testing. Please reopen if you still see issue in the next version. Thanks everybody for their help tracking this down.