Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
aa8b5417
Commit
aa8b5417
authored
May 03, 2010
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2(Linux): _WM_NET_PID requires WM_CLIENT_MACHINE to be set
code inspired from xcb.c
parent
0484b127
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
modules/gui/skins2/x11/x11_window.cpp
modules/gui/skins2/x11/x11_window.cpp
+19
-0
No files found.
modules/gui/skins2/x11/x11_window.cpp
View file @
aa8b5417
...
...
@@ -164,6 +164,25 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow,
classhint
.
res_class
=
(
char
*
)
"Vlc"
;
XSetClassHint
(
XDISPLAY
,
m_wnd
,
&
classhint
);
// initialize WM_CLIENT_MACHINE
char
*
hostname
=
NULL
;
long
host_name_max
=
sysconf
(
_SC_HOST_NAME_MAX
);
if
(
host_name_max
<=
0
)
host_name_max
=
_POSIX_HOST_NAME_MAX
;
hostname
=
new
char
[
host_name_max
];
if
(
hostname
&&
gethostname
(
hostname
,
host_name_max
)
==
0
)
{
hostname
[
host_name_max
-
1
]
=
'\0'
;
XTextProperty
textprop
;
textprop
.
value
=
(
unsigned
char
*
)
hostname
;
textprop
.
encoding
=
XA_STRING
;
textprop
.
format
=
8
;
textprop
.
nitems
=
strlen
(
hostname
);
XSetWMClientMachine
(
XDISPLAY
,
m_wnd
,
&
textprop
);
}
delete
hostname
;
// initialize EWMH pid
pid_t
pid
=
getpid
();
XChangeProperty
(
XDISPLAY
,
m_wnd
,
NET_WM_PID
,
XA_CARDINAL
,
32
,
...
...
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