mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 790183: Don't send SetCursor if the cursor hasn't changed. r=roc
This commit is contained in:
parent
8127acf9cb
commit
da50a68663
@ -475,10 +475,17 @@ PuppetWidget::OnIMESelectionChange(void)
|
||||
NS_IMETHODIMP
|
||||
PuppetWidget::SetCursor(nsCursor aCursor)
|
||||
{
|
||||
if (mCursor == aCursor) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (!mTabChild ||
|
||||
!mTabChild->SendSetCursor(aCursor)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
mCursor = aCursor;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user