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
32bf62e4
Commit
32bf62e4
authored
Apr 30, 2000
by
Gerard Patel
Committed by
Alexandre Julliard
Apr 30, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X11DRV_SetFocus: really don't mess with focus for managed windows.
parent
4d48dd30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
wnd.c
windows/x11drv/wnd.c
+7
-3
No files found.
windows/x11drv/wnd.c
View file @
32bf62e4
...
...
@@ -581,12 +581,16 @@ void X11DRV_WND_SetFocus(WND *wndPtr)
HWND
hwnd
=
wndPtr
->
hwndSelf
;
XWindowAttributes
win_attr
;
Window
win
;
WND
*
w
=
wndPtr
;
/* Only mess with the X focus if there's */
/* no desktop window and if the window is not managed by the WM. */
if
((
X11DRV_GetXRootWindow
()
!=
DefaultRootWindow
(
display
))
||
(
wndPtr
->
flags
&
WIN_MANAGED
))
return
;
if
((
X11DRV_GetXRootWindow
()
!=
DefaultRootWindow
(
display
)))
return
;
while
(
w
&&
!
((
X11DRV_WND_DATA
*
)
w
->
pDriverData
)
->
window
)
w
=
w
->
parent
;
if
(
!
w
)
w
=
wndPtr
;
if
(
w
->
flags
&
WIN_MANAGED
)
return
;
if
(
!
hwnd
)
/* If setting the focus to 0, uninstall the colormap */
{
if
(
X11DRV_PALETTE_PaletteFlags
&
X11DRV_PALETTE_PRIVATE
)
...
...
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