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
d741850d
Commit
d741850d
authored
Sep 27, 2000
by
Stephane Lussier
Committed by
Alexandre Julliard
Sep 27, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
On reception of a FocusOut event, don't deactivate the application if the
next window to get the focus is a Wine window.
parent
72526ba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
event.c
windows/x11drv/event.c
+13
-6
No files found.
windows/x11drv/event.c
View file @
d741850d
...
...
@@ -93,6 +93,7 @@ static const char * const event_names[] =
static
void
CALLBACK
EVENT_Flush
(
ULONG_PTR
arg
);
static
void
CALLBACK
EVENT_ProcessAllEvents
(
ULONG_PTR
arg
);
static
void
EVENT_ProcessEvent
(
XEvent
*
event
);
BOOL
X11DRV_CheckFocus
(
void
);
/* Event handlers */
static
void
EVENT_Key
(
HWND
hWnd
,
XKeyEvent
*
event
);
...
...
@@ -853,13 +854,19 @@ static void EVENT_FocusOut( HWND hWnd, XFocusChangeEvent *event )
{
SendMessageA
(
hWnd
,
WM_CANCELMODE
,
0
,
0
);
/* Abey : 6-Oct-99. Check again if the focus out window is the
Foreground window, because in most cases the messages sent
above must have already changed the foreground window, in which
case we don't have to change the foreground window to 0 */
if
(
hWnd
==
GetForegroundWindow
())
SetForegroundWindow
(
0
);
/* don't reset the foreground window, if the window who's
getting the focus is a Wine window */
if
(
!
X11DRV_CheckFocus
())
{
/* Abey : 6-Oct-99. Check again if the focus out window is the
Foreground window, because in most cases the messages sent
above must have already changed the foreground window, in which
case we don't have to change the foreground window to 0 */
if
(
hWnd
==
GetForegroundWindow
())
SetForegroundWindow
(
0
);
}
}
}
...
...
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