Bug 16388 - [GTK] Widget::setCursor() gets called frequently
Summary: [GTK] Widget::setCursor() gets called frequently
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2007-12-10 14:33 PST by Alp Toker
Modified: 2007-12-12 09:34 PST (History)
0 users

See Also:


Attachments
Workaround (cache the current GdkCursor*) (1.84 KB, patch)
2007-12-10 14:34 PST, Alp Toker
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alp Toker 2007-12-10 14:33:01 PST
Widget::setCursor() seems to get called on every mouse motion event and it seems the underlying implementation gdk_window_set_cursor() isn't too cheap.

This looks like it might be a WebCore bug. Confirmation on ports other than GTK+ would be helpful.
Comment 1 Alp Toker 2007-12-10 14:34:46 PST
Created attachment 17827 [details]
Workaround (cache the current GdkCursor*)
Comment 2 Maciej Stachowiak 2007-12-11 19:26:27 PST
Comment on attachment 17827 [details]
Workaround (cache the current GdkCursor*)

r=me
Comment 3 Alp Toker 2007-12-12 09:34:33 PST
Landed in r28655.