GNOME Bugzilla – Bug 651079
ClutterText "blinks" when deleting text after going out of bounds
Last modified: 2011-07-04 14:58:31 UTC
Simple to do with tests/interactive/test-text-field: 1) Delete everything in the first text field. 2) Enter "aaaaaa..." until it runs off the edge of the field. 3) <Ctrl>Backspace Expected results: The background of the text field should be the regular background color. Actual results: The background of the text field is the selected text background color.
bisection would be greatly appreciated.
clutter-1.2 is broken. clutter-1.0 doesn't have the keybinding, but you can use Home, <Shift>End, Backspace in its stead. The bug still exists.
Created attachment 191200 [details] [review] clutter-text: Always update cursor positions when painting The cursor's on-screen rectangle is defined in terms of the text length, the current index, and text_x and text_y, which hold the text offset in overflowing text fields. When deleting large amounts of text, text_x is set to 0. In some edge case branch paths, the cursor rectangle could be calculated after the current index and text length were updated, but before the text_x offset could be. This left a negative x position, which consequently blew up Cogl and the widget.
Attachment 191200 [details] pushed as 037138d - clutter-text: Always update cursor positions when painting