Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c44410d1
Commit
c44410d1
authored
Mar 28, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Avoid setting text or WM hints of the X root window.
parent
25d13407
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
window.c
dlls/x11drv/window.c
+7
-3
No files found.
dlls/x11drv/window.c
View file @
c44410d1
...
...
@@ -122,7 +122,10 @@ BOOL X11DRV_is_window_rect_mapped( const RECT *rect )
static
int
get_window_attributes
(
Display
*
display
,
struct
x11drv_win_data
*
data
,
XSetWindowAttributes
*
attr
)
{
if
(
!
data
->
managed
&&
(
root_window
==
DefaultRootWindow
(
display
))
&&
is_window_managed
(
data
->
hwnd
))
if
(
!
data
->
managed
&&
root_window
==
DefaultRootWindow
(
display
)
&&
data
->
whole_window
!=
root_window
&&
is_window_managed
(
data
->
hwnd
))
{
data
->
managed
=
TRUE
;
SetPropA
(
data
->
hwnd
,
managed_prop
,
(
HANDLE
)
1
);
...
...
@@ -378,6 +381,7 @@ void X11DRV_set_wm_hints( Display *display, struct x11drv_win_data *data )
if
(
data
->
hwnd
==
GetDesktopWindow
())
{
if
(
data
->
whole_window
==
DefaultRootWindow
(
display
))
return
;
/* force some styles for the desktop to get the correct decorations */
style
|=
WS_CAPTION
|
WS_SYSMENU
|
WS_MINIMIZEBOX
;
owner
=
0
;
...
...
@@ -508,7 +512,7 @@ void X11DRV_set_iconic_state( HWND hwnd )
BOOL
iconic
=
(
style
&
WS_MINIMIZE
)
!=
0
;
if
(
!
(
data
=
X11DRV_get_win_data
(
hwnd
)))
return
;
if
(
!
data
->
whole_window
)
return
;
if
(
!
data
->
whole_window
||
data
->
whole_window
==
DefaultRootWindow
(
display
)
)
return
;
GetWindowRect
(
hwnd
,
&
rect
);
...
...
@@ -754,7 +758,7 @@ void X11DRV_SetWindowText( HWND hwnd, LPCWSTR text )
Window
win
;
XTextProperty
prop
;
if
((
win
=
X11DRV_get_whole_window
(
hwnd
)))
if
((
win
=
X11DRV_get_whole_window
(
hwnd
))
&&
win
!=
DefaultRootWindow
(
display
)
)
{
/* allocate new buffer for window text */
count
=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
text
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
...
...
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