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
03619d36
Commit
03619d36
authored
May 13, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/window: do not depend on xcb-aux for one trivial function call
parent
2d4241a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
configure.ac
configure.ac
+0
-1
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+19
-2
No files found.
configure.ac
View file @
03619d36
...
@@ -4176,7 +4176,6 @@ AS_IF([test "${enable_xcb}" != "no"], [
...
@@ -4176,7 +4176,6 @@ AS_IF([test "${enable_xcb}" != "no"], [
])
])
dnl xcb-utils
dnl xcb-utils
PKG_CHECK_MODULES(XCB_AUX, [xcb-aux])
PKG_CHECK_MODULES(XCB_KEYSYMS, [xcb-keysyms])
PKG_CHECK_MODULES(XCB_KEYSYMS, [xcb-keysyms])
VLC_ADD_PLUGIN([xcb])
VLC_ADD_PLUGIN([xcb])
...
...
modules/video_output/xcb/window.c
View file @
03619d36
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <limits.h>
/* HOST_NAME_MAX */
#include <limits.h>
/* HOST_NAME_MAX */
#include <xcb/xcb.h>
#include <xcb/xcb.h>
#include <xcb/xcb_aux.h>
typedef
xcb_atom_t
Atom
;
typedef
xcb_atom_t
Atom
;
#include <X11/Xatom.h>
/* XA_WM_NAME */
#include <X11/Xatom.h>
/* XA_WM_NAME */
...
@@ -140,8 +139,26 @@ static int Open (vlc_object_t *obj)
...
@@ -140,8 +139,26 @@ static int Open (vlc_object_t *obj)
if
(
xcb_connection_has_error
(
conn
)
/*== NULL*/
)
if
(
xcb_connection_has_error
(
conn
)
/*== NULL*/
)
goto
error
;
goto
error
;
/* Find configured screen */
const
xcb_setup_t
*
setup
=
xcb_get_setup
(
conn
);
xcb_screen_t
*
scr
=
NULL
;
for
(
xcb_screen_iterator_t
i
=
xcb_setup_roots_iterator
(
setup
);
i
.
rem
>
0
;
xcb_screen_next
(
&
i
))
{
if
(
snum
==
0
)
{
scr
=
i
.
data
;
break
;
}
snum
--
;
}
if
(
scr
==
NULL
)
{
msg_Err
(
wnd
,
"bad X11 screen number"
);
goto
error
;
}
/* Create window */
/* Create window */
xcb_screen_t
*
scr
=
xcb_aux_get_screen
(
conn
,
snum
);
const
uint32_t
mask
=
XCB_CW_BACK_PIXEL
|
XCB_CW_EVENT_MASK
;
const
uint32_t
mask
=
XCB_CW_BACK_PIXEL
|
XCB_CW_EVENT_MASK
;
uint32_t
values
[
2
]
=
{
uint32_t
values
[
2
]
=
{
/* XCB_CW_BACK_PIXEL */
/* XCB_CW_BACK_PIXEL */
...
...
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