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
6842064f
Commit
6842064f
authored
Dec 27, 1998
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed SetFocus that was broken when moved to x11drv.
parent
c6e45ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wnd.c
windows/x11drv/wnd.c
+4
-4
No files found.
windows/x11drv/wnd.c
View file @
6842064f
...
...
@@ -434,6 +434,7 @@ void X11DRV_WND_SetFocus(WND *wndPtr)
{
HWND32
hwnd
=
wndPtr
->
hwndSelf
;
XWindowAttributes
win_attr
;
Window
win
;
/* Only mess with the X focus if there's */
/* no desktop window and no window manager. */
...
...
@@ -448,13 +449,12 @@ void X11DRV_WND_SetFocus(WND *wndPtr)
/* Set X focus and install colormap */
if
(
!
X11DRV_WND_GetXWindow
(
wndPtr
))
return
;
if
(
!
TSXGetWindowAttributes
(
display
,
X11DRV_WND_GetXWindow
(
wndPtr
),
&
win_attr
)
||
if
(
!
(
win
=
X11DRV_WND_FindXWindow
(
wndPtr
)))
return
;
if
(
!
TSXGetWindowAttributes
(
display
,
win
,
&
win_attr
)
||
(
win_attr
.
map_state
!=
IsViewable
))
return
;
/* If window is not viewable, don't change anything */
TSXSetInputFocus
(
display
,
X11DRV_WND_GetXWindow
(
wndPtr
)
,
RevertToParent
,
CurrentTime
);
TSXSetInputFocus
(
display
,
win
,
RevertToParent
,
CurrentTime
);
if
(
COLOR_GetSystemPaletteFlags
()
&
COLOR_PRIVATE
)
TSXInstallColormap
(
display
,
COLOR_GetColormap
()
);
...
...
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