mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 728953. Forward all events to the view event callback instead of skipping some. r=jimm
This commit is contained in:
parent
033bc8c911
commit
dd8f797823
@ -3537,20 +3537,16 @@ NS_IMETHODIMP nsWindow::DispatchEvent(nsGUIEvent* event, nsEventStatus & aStatus
|
||||
if (mViewCallback) {
|
||||
// A subset of events are sent to the base xul window first
|
||||
switch(event->message) {
|
||||
// send to the base window (view mgr ignores these for the view)
|
||||
case NS_UISTATECHANGED:
|
||||
case NS_DESTROY:
|
||||
case NS_SETZLEVEL:
|
||||
case NS_XUL_CLOSE:
|
||||
case NS_MOVE:
|
||||
(*mEventCallback)(event); // web shell / xul window
|
||||
return NS_OK;
|
||||
|
||||
// sent to the base window, then to the view
|
||||
case NS_SIZE:
|
||||
case NS_DEACTIVATE:
|
||||
case NS_ACTIVATE:
|
||||
case NS_SIZEMODE:
|
||||
case NS_UISTATECHANGED:
|
||||
case NS_DESTROY:
|
||||
case NS_SETZLEVEL:
|
||||
case NS_XUL_CLOSE:
|
||||
case NS_MOVE:
|
||||
(*mEventCallback)(event); // web shell / xul window
|
||||
break;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user