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
7da32954
Commit
7da32954
authored
Nov 03, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stricter check whether a window needs to be mapped on the screen.
parent
d1c74586
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
winpos.c
dlls/x11drv/winpos.c
+12
-11
No files found.
dlls/x11drv/winpos.c
View file @
7da32954
...
@@ -643,11 +643,12 @@ BOOL X11DRV_set_window_pos( HWND hwnd, HWND insert_after, const RECT *rectWindow
...
@@ -643,11 +643,12 @@ BOOL X11DRV_set_window_pos( HWND hwnd, HWND insert_after, const RECT *rectWindow
if
(
data
->
whole_window
&&
!
(
swp_flags
&
SWP_WINE_NOHOSTMOVE
))
if
(
data
->
whole_window
&&
!
(
swp_flags
&
SWP_WINE_NOHOSTMOVE
))
{
{
if
(
!
(
old_style
&
WS_VISIBLE
)
&&
(
new_style
&
WS_VISIBLE
))
if
((
new_style
&
WS_VISIBLE
)
&&
!
(
new_style
&
WS_MINIMIZE
)
&&
X11DRV_is_window_rect_mapped
(
rectWindow
))
{
{
/* window got shown, map it */
if
(
!
(
old_style
&
WS_VISIBLE
))
if
(
X11DRV_is_window_rect_mapped
(
rectWindow
))
{
{
/* window got shown, map it */
TRACE
(
"mapping win %p
\n
"
,
hwnd
);
TRACE
(
"mapping win %p
\n
"
,
hwnd
);
X11DRV_sync_window_style
(
display
,
data
);
X11DRV_sync_window_style
(
display
,
data
);
X11DRV_set_wm_hints
(
display
,
data
);
X11DRV_set_wm_hints
(
display
,
data
);
...
@@ -655,14 +656,14 @@ BOOL X11DRV_set_window_pos( HWND hwnd, HWND insert_after, const RECT *rectWindow
...
@@ -655,14 +656,14 @@ BOOL X11DRV_set_window_pos( HWND hwnd, HWND insert_after, const RECT *rectWindow
XMapWindow
(
display
,
data
->
whole_window
);
XMapWindow
(
display
,
data
->
whole_window
);
wine_tsx11_unlock
();
wine_tsx11_unlock
();
}
}
}
else
if
((
swp_flags
&
(
SWP_NOSIZE
|
SWP_NOMOVE
))
!=
(
SWP_NOSIZE
|
SWP_NOMOVE
))
else
if
((
new_style
&
WS_VISIBLE
)
&&
X11DRV_is_window_rect_mapped
(
rectWindow
))
{
{
/* resizing from zero size to non-zero -> map */
/* resizing from zero size to non-zero -> map */
TRACE
(
"mapping non zero size or off-screen win %p
\n
"
,
hwnd
);
TRACE
(
"mapping non zero size or off-screen win %p
\n
"
,
hwnd
);
wine_tsx11_lock
(
);
wine_tsx11_lock
(
);
XMapWindow
(
display
,
data
->
whole_window
);
XMapWindow
(
display
,
data
->
whole_window
);
wine_tsx11_unlock
(
);
wine_tsx11_unlock
();
}
}
}
wine_tsx11_lock
();
wine_tsx11_lock
();
XFlush
(
display
);
/* FIXME: should not be necessary */
XFlush
(
display
);
/* FIXME: should not be necessary */
...
...
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