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
125793df
Commit
125793df
authored
Feb 18, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Move the raising of windows on SetFocus to the X11 driver where it belongs.
parent
2472e81c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
focus.c
dlls/user32/focus.c
+0
-4
window.c
dlls/winex11.drv/window.c
+6
-10
No files found.
dlls/user32/focus.c
View file @
125793df
...
...
@@ -113,10 +113,6 @@ static BOOL set_active_window( HWND hwnd, HWND *prev, BOOL mouse, BOOL focus )
if
(
SendMessageW
(
hwnd
,
WM_QUERYNEWPALETTE
,
0
,
0
))
SendMessageTimeoutW
(
HWND_BROADCAST
,
WM_PALETTEISCHANGING
,
(
WPARAM
)
hwnd
,
0
,
SMTO_ABORTIFHUNG
,
2000
,
NULL
);
if
(
!
GetPropA
(
hwnd
,
"__wine_x11_managed"
))
SetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
);
if
(
!
IsWindow
(
hwnd
))
return
FALSE
;
}
...
...
dlls/winex11.drv/window.c
View file @
125793df
...
...
@@ -1516,13 +1516,10 @@ void X11DRV_SetFocus( HWND hwnd )
{
Display
*
display
=
thread_display
();
struct
x11drv_win_data
*
data
;
XWindowAttributes
win_attr
;
/* Only mess with the X focus if there's */
/* no desktop window and if the window is not managed by the WM. */
if
(
root_window
!=
DefaultRootWindow
(
display
))
return
;
XWindowChanges
changes
;
if
(
!
hwnd
)
/* If setting the focus to 0, uninstall the colormap */
/* If setting the focus to 0, uninstall the colormap */
if
(
!
hwnd
&&
root_window
==
DefaultRootWindow
(
display
))
{
wine_tsx11_lock
();
if
(
X11DRV_PALETTE_PaletteFlags
&
X11DRV_PALETTE_PRIVATE
)
...
...
@@ -1538,11 +1535,10 @@ void X11DRV_SetFocus( HWND hwnd )
/* Set X focus and install colormap */
wine_tsx11_lock
();
if
(
XGetWindowAttributes
(
display
,
data
->
whole_window
,
&
win_attr
)
&&
(
win_attr
.
map_state
==
IsViewable
))
changes
.
stack_mode
=
Above
;
XConfigureWindow
(
display
,
data
->
whole_window
,
CWStackMode
,
&
changes
);
if
(
root_window
==
DefaultRootWindow
(
display
))
{
/* If window is not viewable, don't change anything */
/* we must not use CurrentTime (ICCCM), so try to use last message time instead */
/* FIXME: this is not entirely correct */
XSetInputFocus
(
display
,
data
->
whole_window
,
RevertToParent
,
...
...
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