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
effdfa7d
Commit
effdfa7d
authored
Aug 27, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Child windows don't get activated even when requested, so don't make them managed either.
parent
7ce277d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
window.c
dlls/winex11.drv/window.c
+4
-1
winpos.c
dlls/winex11.drv/winpos.c
+1
-3
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-1
No files found.
dlls/winex11.drv/window.c
View file @
effdfa7d
...
...
@@ -66,7 +66,7 @@ static const char visual_id_prop[] = "__wine_x11_visual_id";
*
* Check if a given window should be managed
*/
BOOL
is_window_managed
(
HWND
hwnd
,
const
RECT
*
window_rect
)
BOOL
is_window_managed
(
HWND
hwnd
,
UINT
swp_flags
,
const
RECT
*
window_rect
)
{
DWORD
style
,
ex_style
;
...
...
@@ -76,6 +76,9 @@ BOOL is_window_managed( HWND hwnd, const RECT *window_rect )
/* child windows are not managed */
style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
if
((
style
&
(
WS_CHILD
|
WS_POPUP
))
==
WS_CHILD
)
return
FALSE
;
/* activated windows are managed */
if
(
!
(
swp_flags
&
(
SWP_NOACTIVATE
|
SWP_HIDEWINDOW
)))
return
TRUE
;
if
(
hwnd
==
GetActiveWindow
())
return
TRUE
;
/* windows with caption are managed */
if
((
style
&
WS_CAPTION
)
==
WS_CAPTION
)
return
TRUE
;
/* tool windows are not managed */
...
...
dlls/winex11.drv/winpos.c
View file @
effdfa7d
...
...
@@ -252,9 +252,7 @@ BOOL X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, const RECT *rectWindow,
root_window
==
DefaultRootWindow
(
display
)
&&
data
->
whole_window
!=
root_window
)
{
if
(
!
(
swp_flags
&
(
SWP_NOACTIVATE
|
SWP_HIDEWINDOW
))
||
is_window_managed
(
hwnd
,
rectWindow
)
||
hwnd
==
GetActiveWindow
())
if
(
is_window_managed
(
hwnd
,
swp_flags
,
rectWindow
))
{
TRACE
(
"making win %p/%lx managed
\n
"
,
hwnd
,
data
->
whole_window
);
make_managed
=
TRUE
;
...
...
dlls/winex11.drv/x11drv.h
View file @
effdfa7d
...
...
@@ -684,7 +684,7 @@ typedef int (*x11drv_error_callback)( Display *display, XErrorEvent *event, void
extern
void
X11DRV_expect_error
(
Display
*
display
,
x11drv_error_callback
callback
,
void
*
arg
);
extern
int
X11DRV_check_error
(
void
);
extern
BOOL
is_window_managed
(
HWND
hwnd
,
const
RECT
*
window_rect
);
extern
BOOL
is_window_managed
(
HWND
hwnd
,
UINT
swp_flags
,
const
RECT
*
window_rect
);
extern
void
X11DRV_set_iconic_state
(
HWND
hwnd
);
extern
void
X11DRV_window_to_X_rect
(
struct
x11drv_win_data
*
data
,
RECT
*
rect
);
extern
void
X11DRV_X_to_window_rect
(
struct
x11drv_win_data
*
data
,
RECT
*
rect
);
...
...
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