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
026d41c5
Commit
026d41c5
authored
Dec 09, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Only map the window the first time that WS_VISIBLE is set through WM_SETREDRAW.
parent
5b2286a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
window.c
dlls/winex11.drv/window.c
+8
-16
No files found.
dlls/winex11.drv/window.c
View file @
026d41c5
...
...
@@ -1819,17 +1819,16 @@ void CDECL X11DRV_SetWindowText( HWND hwnd, LPCWSTR text )
*/
void
CDECL
X11DRV_SetWindowStyle
(
HWND
hwnd
,
INT
offset
,
STYLESTRUCT
*
style
)
{
struct
x11drv_win_data
*
data
;
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
)
;
DWORD
changed
;
if
(
hwnd
==
GetDesktopWindow
())
return
;
changed
=
style
->
styleNew
^
style
->
styleOld
;
if
(
offset
==
GWL_STYLE
&&
(
changed
&
WS_VISIBLE
)
&&
(
style
->
styleNew
&
WS_VISIBLE
))
/* if WS_VISIBLE was set through WM_SETREDRAW, map the window if it's the first time */
if
(
offset
==
GWL_STYLE
&&
(
changed
&
WS_VISIBLE
)
&&
(
style
->
styleNew
&
WS_VISIBLE
)
&&
!
data
)
{
/* we don't unmap windows, that causes trouble with the window manager */
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
))
&&
!
(
data
=
X11DRV_create_win_data
(
hwnd
)))
return
;
if
(
!
(
data
=
X11DRV_create_win_data
(
hwnd
)))
return
;
if
(
data
->
whole_window
&&
is_window_rect_mapped
(
&
data
->
window_rect
))
{
...
...
@@ -1838,20 +1837,13 @@ void CDECL X11DRV_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
if
(
!
data
->
mapped
)
map_window
(
display
,
data
,
style
->
styleNew
);
}
}
if
(
!
data
||
!
data
->
whole_window
)
return
;
if
(
offset
==
GWL_STYLE
&&
(
changed
&
WS_DISABLED
))
{
data
=
X11DRV_get_win_data
(
hwnd
);
if
(
data
&&
data
->
whole_window
)
set_wm_hints
(
thread_display
(),
data
);
}
set_wm_hints
(
thread_display
(),
data
);
if
(
offset
==
GWL_EXSTYLE
&&
(
changed
&
WS_EX_LAYERED
))
{
/* changing WS_EX_LAYERED resets attributes */
if
((
data
=
X11DRV_get_win_data
(
hwnd
))
&&
data
->
whole_window
)
sync_window_opacity
(
thread_display
(),
data
->
whole_window
,
0
,
0
,
0
);
}
if
(
offset
==
GWL_EXSTYLE
&&
(
changed
&
WS_EX_LAYERED
))
/* changing WS_EX_LAYERED resets attributes */
sync_window_opacity
(
thread_display
(),
data
->
whole_window
,
0
,
0
,
0
);
}
...
...
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