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
44dcf6ad
Commit
44dcf6ad
authored
Jun 20, 2003
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Jun 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store WM_NAME and WM_ICON_NAME in COMPOUND_TEXT format.
parent
852c7ae4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
window.c
dlls/x11drv/window.c
+7
-2
No files found.
dlls/x11drv/window.c
View file @
44dcf6ad
...
...
@@ -796,6 +796,7 @@ BOOL X11DRV_SetWindowText( HWND hwnd, LPCWSTR text )
char
*
utf8_buffer
;
static
UINT
text_cp
=
(
UINT
)
-
1
;
Window
win
;
XTextProperty
prop
;
if
((
win
=
X11DRV_get_whole_window
(
hwnd
)))
{
...
...
@@ -833,8 +834,12 @@ BOOL X11DRV_SetWindowText( HWND hwnd, LPCWSTR text )
WideCharToMultiByte
(
CP_UTF8
,
0
,
text
,
strlenW
(
text
),
utf8_buffer
,
count
,
NULL
,
NULL
);
wine_tsx11_lock
();
XStoreName
(
display
,
win
,
buffer
);
XSetIconName
(
display
,
win
,
buffer
);
if
(
XmbTextListToTextProperty
(
display
,
&
buffer
,
1
,
XStdICCTextStyle
,
&
prop
)
==
Success
)
{
XSetWMName
(
display
,
win
,
&
prop
);
XSetWMIconName
(
display
,
win
,
&
prop
);
XFree
(
prop
.
value
);
}
/*
Implements a NET_WM UTF-8 title. It should be without a trailing \0,
according to the standard
...
...
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