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
9539cf7a
Commit
9539cf7a
authored
Apr 13, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use NSContainer HWND in handle_blur.
parent
80f0f35c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
nsevents.c
dlls/mshtml/nsevents.c
+3
-3
No files found.
dlls/mshtml/nsevents.c
View file @
9539cf7a
...
...
@@ -109,11 +109,11 @@ static nsrefcnt NSAPI nsDOMEventListener_Release(nsIDOMEventListener *iface)
return
release_listener
(
This
);
}
static
BOOL
is_doc_child_focus
(
HTMLDocumentObj
*
doc
)
static
BOOL
is_doc_child_focus
(
NSContainer
*
nscontainer
)
{
HWND
hwnd
;
for
(
hwnd
=
GetFocus
();
hwnd
&&
hwnd
!=
doc
->
hwnd
;
hwnd
=
GetParent
(
hwnd
));
for
(
hwnd
=
GetFocus
();
hwnd
&&
hwnd
!=
nscontainer
->
hwnd
;
hwnd
=
GetParent
(
hwnd
));
return
hwnd
!=
NULL
;
}
...
...
@@ -129,7 +129,7 @@ static nsresult NSAPI handle_blur(nsIDOMEventListener *iface, nsIDOMEvent *event
return
NS_ERROR_FAILURE
;
doc_obj
=
doc
->
basedoc
.
doc_obj
;
if
(
doc_obj
->
focus
&&
!
is_doc_child_focus
(
doc_obj
))
{
if
(
doc_obj
->
focus
&&
!
is_doc_child_focus
(
doc_obj
->
nscontainer
))
{
doc_obj
->
focus
=
FALSE
;
notif_focus
(
doc_obj
);
}
...
...
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