Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
3ad40bf6
Commit
3ad40bf6
authored
Oct 29, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Delay mapping a layered window until its attributes are set.
parent
b7582525
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
window.c
dlls/winex11.drv/window.c
+20
-1
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-0
No files found.
dlls/winex11.drv/window.c
View file @
3ad40bf6
...
...
@@ -1500,6 +1500,7 @@ void CDECL X11DRV_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
if
(
offset
==
GWL_EXSTYLE
&&
(
changed
&
WS_EX_LAYERED
))
/* changing WS_EX_LAYERED resets attributes */
{
data
->
layered
=
FALSE
;
set_window_visual
(
data
,
&
default_visual
);
sync_window_opacity
(
data
->
display
,
data
->
whole_window
,
0
,
0
,
0
);
if
(
data
->
surface
)
set_surface_color_key
(
data
->
surface
,
CLR_INVALID
);
...
...
@@ -2187,10 +2188,13 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
if
(
!
data
->
mapped
)
{
BOOL
needs_icon
=
!
data
->
icon_pixmap
;
BOOL
needs_map
=
TRUE
;
/* layered windows are mapped only once their attributes are set */
if
(
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_LAYERED
)
needs_map
=
data
->
layered
;
release_win_data
(
data
);
if
(
needs_icon
)
fetch_icon_data
(
hwnd
,
0
,
0
);
map_window
(
hwnd
,
new_style
);
if
(
needs_map
)
map_window
(
hwnd
,
new_style
);
return
;
}
else
if
((
swp_flags
&
SWP_STATECHANGED
)
&&
(
!
data
->
iconic
!=
!
(
new_style
&
WS_MINIMIZE
)))
...
...
@@ -2336,6 +2340,20 @@ void CDECL X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alph
sync_window_opacity
(
data
->
display
,
data
->
whole_window
,
key
,
alpha
,
flags
);
if
(
data
->
surface
)
set_surface_color_key
(
data
->
surface
,
(
flags
&
LWA_COLORKEY
)
?
key
:
CLR_INVALID
);
data
->
layered
=
TRUE
;
if
(
!
data
->
mapped
)
/* mapping is delayed until attributes are set */
{
DWORD
style
=
GetWindowLongW
(
data
->
hwnd
,
GWL_STYLE
);
if
((
style
&
WS_VISIBLE
)
&&
((
style
&
WS_MINIMIZE
)
||
is_window_rect_mapped
(
&
data
->
window_rect
)))
{
release_win_data
(
data
);
map_window
(
hwnd
,
style
);
return
;
}
}
release_win_data
(
data
);
}
else
...
...
@@ -2371,6 +2389,7 @@ BOOL CDECL X11DRV_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
if
(
!
(
data
=
get_win_data
(
hwnd
)))
return
FALSE
;
data
->
layered
=
TRUE
;
if
(
!
data
->
embedded
&&
argb_visual
.
visualid
)
set_window_visual
(
data
,
&
argb_visual
);
rect
=
*
window_rect
;
...
...
dlls/winex11.drv/x11drv.h
View file @
3ad40bf6
...
...
@@ -558,6 +558,7 @@ struct x11drv_win_data
BOOL
iconic
:
1
;
/* is window in iconic state? */
BOOL
embedded
:
1
;
/* is window an XEMBED client? */
BOOL
shaped
:
1
;
/* is window using a custom region shape? */
BOOL
layered
:
1
;
/* is window layered and with valid attributes? */
int
wm_state
;
/* current value of the WM_STATE property */
DWORD
net_wm_state
;
/* bit mask of active x11drv_net_wm_state values */
Window
embedder
;
/* window id of embedder */
...
...
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