Closed Bug 153805 Opened 23 years ago Closed 23 years ago

Gtk2 double buffer makes carets misbehave in mozilla (gtk2)

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jeff.qiu, Assigned: iamawalrus)

References

Details

Attachments

(1 file, 1 obsolete file)

This's an annoying bug happening all the time when you need to type something into mozilla. Sometimes the caret disapears, sometimes only part of it shows, sometimes it stays there when it should be erased... Robin found it's caused by double buffer, a new feature of Gtk2. He'll attach a work around soon.
Attached patch a work around patch (obsolete) — Splinter Review
Thank Jeff for openning this bug. Since nsCaret use InvertRect to show/hide the caret, it depends on the status of what has been drawn. The Gtk2's double buffer only allows us to draw the new frame depending on the background color/pixmap. I think it is quite reasonable, but it breaks our InvertRect machanism while handling expose event forces us to use double buffer. This work around patch disables the double buffer and saves the caret.
Blocks: gtk2
Comment on attachment 88899 [details] [diff] [review] a work around patch Can you put the actual bug number in the comment? Other than that r=blizzard. Go ahead and check it in. Thanks!
Attachment #88899 - Flags: review+
I suspect that bug 131043 is a dup of this one.
Blizzard, Thanks for your reviewing! Do you mean we can check it in now or can you give the patch a sr=?
Robin, in you patch, put bug number into the comment, then I will help you to checkin. since this part is not in default build and is owned by Chris, so Chris's r= is equal to sr= :-) Jay
Attachment #88899 - Attachment is obsolete: true
checked in, Robin, please verify the patch. Jay
works fine.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 131043 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: