mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 368016. Don't XFlush() in SetCursor(), it's slow and can be called often. r=caillon
This commit is contained in:
parent
f3d2506617
commit
f8f42fffb6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user