Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e20625e5
Commit
e20625e5
authored
Jun 21, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Jun 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Reset focus if application does not want to be activated.
parent
e28da99e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
event.c
dlls/winex11.drv/event.c
+11
-10
No files found.
dlls/winex11.drv/event.c
View file @
e20625e5
...
@@ -445,17 +445,18 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event )
...
@@ -445,17 +445,18 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event )
LRESULT
ma
=
SendMessageW
(
hwnd
,
WM_MOUSEACTIVATE
,
LRESULT
ma
=
SendMessageW
(
hwnd
,
WM_MOUSEACTIVATE
,
(
WPARAM
)
GetAncestor
(
hwnd
,
GA_ROOT
),
(
WPARAM
)
GetAncestor
(
hwnd
,
GA_ROOT
),
MAKELONG
(
HTCAPTION
,
WM_LBUTTONDOWN
)
);
MAKELONG
(
HTCAPTION
,
WM_LBUTTONDOWN
)
);
if
(
ma
!=
MA_NOACTIVATEANDEAT
&&
ma
!=
MA_NOACTIVATE
)
set_focus
(
hwnd
,
event_time
);
if
(
ma
!=
MA_NOACTIVATEANDEAT
&&
ma
!=
MA_NOACTIVATE
)
else
TRACE
(
"not setting focus to %p (%lx), ma=%ld
\n
"
,
hwnd
,
event
->
window
,
ma
);
{
}
set_focus
(
hwnd
,
event_time
);
else
return
;
{
}
hwnd
=
GetFocus
();
if
(
hwnd
)
hwnd
=
GetAncestor
(
hwnd
,
GA_ROOT
);
if
(
!
hwnd
)
hwnd
=
GetActiveWindow
();
if
(
!
hwnd
)
hwnd
=
last_focus
;
if
(
hwnd
&&
can_activate_window
(
hwnd
))
set_focus
(
hwnd
,
event_time
);
}
}
/* try to find some other window to give the focus to */
hwnd
=
GetFocus
();
if
(
hwnd
)
hwnd
=
GetAncestor
(
hwnd
,
GA_ROOT
);
if
(
!
hwnd
)
hwnd
=
GetActiveWindow
();
if
(
!
hwnd
)
hwnd
=
last_focus
;
if
(
hwnd
&&
can_activate_window
(
hwnd
))
set_focus
(
hwnd
,
event_time
);
}
}
else
if
(
protocol
==
x11drv_atom
(
_NET_WM_PING
))
else
if
(
protocol
==
x11drv_atom
(
_NET_WM_PING
))
{
{
...
...
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