Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6bf1250b
Commit
6bf1250b
authored
Oct 20, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't use fire_event to dispatch contextmenu event.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
62e76f18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
nsembed.c
dlls/mshtml/nsembed.c
+11
-6
No files found.
dlls/mshtml/nsembed.c
View file @
6bf1250b
...
...
@@ -1486,8 +1486,9 @@ static nsresult NSAPI nsContextMenuListener_OnShowContextMenu(nsIContextMenuList
UINT32
aContextFlags
,
nsIDOMEvent
*
aEvent
,
nsIDOMNode
*
aNode
)
{
NSContainer
*
This
=
impl_from_nsIContextMenuListener
(
iface
);
nsIDOMMouseEvent
*
event
;
nsIDOMMouseEvent
*
mouse_
event
;
HTMLDOMNode
*
node
;
DOMEvent
*
event
;
POINT
pt
;
DWORD
dwID
=
CONTEXT_MENU_DEFAULT
;
nsresult
nsres
;
...
...
@@ -1499,14 +1500,18 @@ static nsresult NSAPI nsContextMenuListener_OnShowContextMenu(nsIContextMenuList
if
(
FAILED
(
hres
))
return
NS_ERROR_FAILURE
;
fire_event
(
This
->
doc
->
basedoc
.
doc_node
/* FIXME */
,
EVENTID_CONTEXTMENU
,
TRUE
,
&
node
->
event_target
,
aEvent
);
hres
=
create_event_from_nsevent
(
aEvent
,
&
event
);
if
(
SUCCEEDED
(
hres
))
{
fire_event_obj
(
&
node
->
event_target
,
event
);
IDOMEvent_Release
(
&
event
->
IDOMEvent_iface
);
}
nsres
=
nsIDOMEvent_QueryInterface
(
aEvent
,
&
IID_nsIDOMMouseEvent
,
(
void
**
)
&
event
);
nsres
=
nsIDOMEvent_QueryInterface
(
aEvent
,
&
IID_nsIDOMMouseEvent
,
(
void
**
)
&
mouse_
event
);
assert
(
NS_SUCCEEDED
(
nsres
));
nsIDOMMouseEvent_GetScreenX
(
event
,
&
pt
.
x
);
nsIDOMMouseEvent_GetScreenY
(
event
,
&
pt
.
y
);
nsIDOMMouseEvent_Release
(
event
);
nsIDOMMouseEvent_GetScreenX
(
mouse_
event
,
&
pt
.
x
);
nsIDOMMouseEvent_GetScreenY
(
mouse_
event
,
&
pt
.
y
);
nsIDOMMouseEvent_Release
(
mouse_
event
);
switch
(
aContextFlags
)
{
case
CONTEXT_NONE
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment