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
1f07fea8
Commit
1f07fea8
authored
Aug 11, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some comments
parent
066325d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+6
-0
No files found.
modules/video_output/xcb/window.c
View file @
1f07fea8
...
@@ -78,6 +78,7 @@ struct vout_window_sys_t
...
@@ -78,6 +78,7 @@ struct vout_window_sys_t
/*xcb_atom_t wmstate_fullscreen;*/
/*xcb_atom_t wmstate_fullscreen;*/
};
};
/** Set an X window property from a nul-terminated string */
static
inline
static
inline
void
set_string
(
xcb_connection_t
*
conn
,
xcb_window_t
window
,
void
set_string
(
xcb_connection_t
*
conn
,
xcb_window_t
window
,
xcb_atom_t
type
,
xcb_atom_t
atom
,
const
char
*
str
)
xcb_atom_t
type
,
xcb_atom_t
atom
,
const
char
*
str
)
...
@@ -86,6 +87,7 @@ void set_string (xcb_connection_t *conn, xcb_window_t window,
...
@@ -86,6 +87,7 @@ void set_string (xcb_connection_t *conn, xcb_window_t window,
/* format */
8
,
strlen
(
str
),
str
);
/* format */
8
,
strlen
(
str
),
str
);
}
}
/** Set an X window string property */
static
inline
static
inline
void
set_ascii_prop
(
xcb_connection_t
*
conn
,
xcb_window_t
window
,
void
set_ascii_prop
(
xcb_connection_t
*
conn
,
xcb_window_t
window
,
xcb_atom_t
atom
,
const
char
*
value
)
xcb_atom_t
atom
,
const
char
*
value
)
...
@@ -93,6 +95,7 @@ void set_ascii_prop (xcb_connection_t *conn, xcb_window_t window,
...
@@ -93,6 +95,7 @@ void set_ascii_prop (xcb_connection_t *conn, xcb_window_t window,
set_string
(
conn
,
window
,
atom
,
XA_STRING
,
value
);
set_string
(
conn
,
window
,
atom
,
XA_STRING
,
value
);
}
}
/** Set the Window ICCCM client machine property */
static
inline
static
inline
void
set_hostname_prop
(
xcb_connection_t
*
conn
,
xcb_window_t
window
)
void
set_hostname_prop
(
xcb_connection_t
*
conn
,
xcb_window_t
window
)
{
{
...
@@ -110,12 +113,14 @@ void set_hostname_prop (xcb_connection_t *conn, xcb_window_t window)
...
@@ -110,12 +113,14 @@ void set_hostname_prop (xcb_connection_t *conn, xcb_window_t window)
free
(
hostname
);
free
(
hostname
);
}
}
/** Request the X11 server to internalize a string into an atom */
static
inline
static
inline
xcb_intern_atom_cookie_t
intern_string
(
xcb_connection_t
*
c
,
const
char
*
s
)
xcb_intern_atom_cookie_t
intern_string
(
xcb_connection_t
*
c
,
const
char
*
s
)
{
{
return
xcb_intern_atom
(
c
,
0
,
strlen
(
s
),
s
);
return
xcb_intern_atom
(
c
,
0
,
strlen
(
s
),
s
);
}
}
/** Extract the X11 atom from an intern request cookie */
static
static
xcb_atom_t
get_atom
(
xcb_connection_t
*
conn
,
xcb_intern_atom_cookie_t
ck
)
xcb_atom_t
get_atom
(
xcb_connection_t
*
conn
,
xcb_intern_atom_cookie_t
ck
)
{
{
...
@@ -290,6 +295,7 @@ static void Close (vlc_object_t *obj)
...
@@ -290,6 +295,7 @@ static void Close (vlc_object_t *obj)
}
}
/** Background thread for X11 events handling */
static
void
*
Thread
(
void
*
data
)
static
void
*
Thread
(
void
*
data
)
{
{
vout_window_t
*
wnd
=
data
;
vout_window_t
*
wnd
=
data
;
...
...
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