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
f41e2339
Commit
f41e2339
authored
Apr 02, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Allow mapping/unmapping a window even while processing another event.
parent
86675edf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
winpos.c
dlls/winex11.drv/winpos.c
+6
-8
No files found.
dlls/winex11.drv/winpos.c
View file @
f41e2339
...
...
@@ -388,14 +388,11 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
if
(
thread_data
->
current_event
&&
thread_data
->
current_event
->
xany
.
window
==
data
->
whole_window
)
event_type
=
thread_data
->
current_event
->
type
;
if
(
event_type
==
ConfigureNotify
||
event_type
==
PropertyNotify
)
{
TRACE
(
"not changing window %p/%lx while processing event %u
\n
"
,
hwnd
,
data
->
whole_window
,
event_type
);
return
;
}
if
(
event_type
!=
ConfigureNotify
&&
event_type
!=
PropertyNotify
)
event_type
=
0
;
/* ignore other events */
if
(
data
->
mapped
&&
(
!
(
new_style
&
WS_VISIBLE
)
||
!
X11DRV_is_window_rect_mapped
(
rectWindow
)))
if
(
data
->
mapped
&&
(
!
(
new_style
&
WS_VISIBLE
)
||
(
!
event_type
&&
!
X11DRV_is_window_rect_mapped
(
rectWindow
))))
{
TRACE
(
"unmapping win %p/%lx
\n
"
,
hwnd
,
data
->
whole_window
);
wait_for_withdrawn_state
(
display
,
data
,
FALSE
);
...
...
@@ -408,7 +405,8 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
}
/* don't change position if we are about to minimize or maximize a managed window */
if
(
!
(
data
->
managed
&&
(
swp_flags
&
SWP_STATECHANGED
)
&&
(
new_style
&
(
WS_MINIMIZE
|
WS_MAXIMIZE
))))
if
(
!
event_type
&&
!
(
data
->
managed
&&
(
swp_flags
&
SWP_STATECHANGED
)
&&
(
new_style
&
(
WS_MINIMIZE
|
WS_MAXIMIZE
))))
X11DRV_sync_window_position
(
display
,
data
,
swp_flags
,
&
old_client_rect
,
&
old_whole_rect
);
if
((
new_style
&
WS_VISIBLE
)
&&
...
...
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