Bug 368016. Don't XFlush() in SetCursor(), it's slow and can be called often. r=caillon

This commit is contained in:
roc+@cs.cmu.edu 2007-04-02 20:21:39 -07:00
parent f3d2506617
commit f8f42fffb6

View File

@ -939,8 +939,6 @@ nsWindow::SetCursor(nsCursor aCursor)
return NS_OK;
gdk_window_set_cursor(GTK_WIDGET(mContainer)->window, newCursor);
XFlush(GDK_DISPLAY());
}
}
@ -1099,7 +1097,6 @@ nsWindow::SetCursor(imgIContainer* aCursor,
if (cursor) {
if (mContainer) {
gdk_window_set_cursor(GTK_WIDGET(mContainer)->window, cursor);
XFlush(GDK_DISPLAY());
rv = NS_OK;
}
gdk_cursor_unref(cursor);