Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
5948f590
Commit
5948f590
authored
Apr 15, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set a name for the video window
parent
df3c9a76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+16
-0
No files found.
modules/video_output/xcb/window.c
View file @
5948f590
...
@@ -30,6 +30,8 @@
...
@@ -30,6 +30,8 @@
#include <xcb/xcb.h>
#include <xcb/xcb.h>
#include <xcb/xcb_aux.h>
#include <xcb/xcb_aux.h>
typedef
xcb_atom_t
Atom
;
#include <X11/Xatom.h>
/* XA_WM_NAME */
#include <vlc_common.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_plugin.h>
...
@@ -70,6 +72,14 @@ struct vout_window_sys_t
...
@@ -70,6 +72,14 @@ struct vout_window_sys_t
vlc_thread_t
thread
;
vlc_thread_t
thread
;
};
};
static
inline
void
set_ascii_prop
(
xcb_connection_t
*
conn
,
xcb_window_t
window
,
xcb_atom_t
atom
,
const
char
*
value
)
{
xcb_change_property
(
conn
,
XCB_PROP_MODE_REPLACE
,
window
,
atom
,
XA_STRING
,
8
,
strlen
(
value
),
value
);
}
/**
/**
* Create an X11 window.
* Create an X11 window.
*/
*/
...
@@ -114,6 +124,12 @@ static int Open (vlc_object_t *obj)
...
@@ -114,6 +124,12 @@ static int Open (vlc_object_t *obj)
goto
error
;
goto
error
;
}
}
/* Plain ASCII localization of VLC for ICCCM window name */
set_ascii_prop
(
conn
,
window
,
XA_WM_NAME
,
pgettext
(
"ASCII VLC media player"
,
"VLC media player"
));
set_ascii_prop
(
conn
,
window
,
XA_WM_ICON_NAME
,
pgettext
(
"ASCII VLC"
,
"VLC"
));
wnd
->
handle
.
xid
=
window
;
wnd
->
handle
.
xid
=
window
;
wnd
->
p_sys
=
p_sys
;
wnd
->
p_sys
=
p_sys
;
wnd
->
control
=
Control
;
wnd
->
control
=
Control
;
...
...
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