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
c7dd9b7e
Commit
c7dd9b7e
authored
Jul 10, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/window: allow compilation without xcb-keysyms
parent
73339d95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
6 deletions
+31
-6
configure.ac
configure.ac
+3
-2
modules/video_output/xcb/keys.c
modules/video_output/xcb/keys.c
+28
-4
No files found.
configure.ac
View file @
c7dd9b7e
...
@@ -3314,7 +3314,7 @@ AS_IF([test "${enable_xcb}" != "no"], [
...
@@ -3314,7 +3314,7 @@ AS_IF([test "${enable_xcb}" != "no"], [
dnl libxcb
dnl libxcb
PKG_CHECK_MODULES(XCB, [xcb])
PKG_CHECK_MODULES(XCB, [xcb])
PKG_CHECK_MODULES(XCB_SHM, [xcb-shm])
PKG_CHECK_MODULES(XCB_SHM, [xcb-shm])
VLC_ADD_PLUGIN([screensaver xcb_x11 xcb_screen xcb_apps])
VLC_ADD_PLUGIN([screensaver xcb_x11 xcb_
window xcb_
screen xcb_apps])
AS_IF([test "${enable_xvideo}" != "no"], [
AS_IF([test "${enable_xvideo}" != "no"], [
PKG_CHECK_MODULES(XCB_XV, [xcb-xv >= 1.1.90.1], [
PKG_CHECK_MODULES(XCB_XV, [xcb-xv >= 1.1.90.1], [
...
@@ -3348,9 +3348,10 @@ AS_IF([test "${enable_xcb}" != "no"], [
...
@@ -3348,9 +3348,10 @@ AS_IF([test "${enable_xcb}" != "no"], [
AS_IF([test "${have_xcb_keysyms}" = "yes"], [
AS_IF([test "${have_xcb_keysyms}" = "yes"], [
PKG_CHECK_MODULES(XPROTO, [xproto])
PKG_CHECK_MODULES(XPROTO, [xproto])
VLC_ADD_PLUGIN([
xcb_window
globalhotkeys])
VLC_ADD_PLUGIN([globalhotkeys])
VLC_ADD_CFLAGS([globalhotkeys], [${XCB_KEYSYMS_CFLAGS} ${XCB_CFLAGS}])
VLC_ADD_CFLAGS([globalhotkeys], [${XCB_KEYSYMS_CFLAGS} ${XCB_CFLAGS}])
VLC_ADD_LIBS([globalhotkeys], [${XCB_KEYSYMS_LIBS} ${XCB_LIBS}])
VLC_ADD_LIBS([globalhotkeys], [${XCB_KEYSYMS_LIBS} ${XCB_LIBS}])
VLC_ADD_CFLAGS([xcb_window], [-DHAVE_XCB_KEYSYMS])
])
])
VLC_ADD_PLUGIN([xdg_screensaver])
VLC_ADD_PLUGIN([xdg_screensaver])
])
])
...
...
modules/video_output/xcb/keys.c
View file @
c7dd9b7e
...
@@ -29,15 +29,15 @@
...
@@ -29,15 +29,15 @@
#include <assert.h>
#include <assert.h>
#include <xcb/xcb.h>
#include <xcb/xcb.h>
#include <vlc_common.h>
#include "xcb_vlc.h"
#ifdef HAVE_XCB_KEYSYMS
#include <xcb/xcb_keysyms.h>
#include <xcb/xcb_keysyms.h>
#include <X11/keysym.h>
#include <X11/keysym.h>
#include <X11/XF86keysym.h>
#include <X11/XF86keysym.h>
#include <vlc_common.h>
#include <vlc_keys.h>
#include <vlc_keys.h>
#include "xcb_vlc.h"
struct
key_handler_t
struct
key_handler_t
{
{
vlc_object_t
*
obj
;
vlc_object_t
*
obj
;
...
@@ -164,3 +164,27 @@ int ProcessKeyEvent (key_handler_t *ctx, xcb_generic_event_t *ev)
...
@@ -164,3 +164,27 @@ int ProcessKeyEvent (key_handler_t *ctx, xcb_generic_event_t *ev)
free
(
ev
);
free
(
ev
);
return
0
;
return
0
;
}
}
#else
/* HAVE_XCB_KEYSYMS */
key_handler_t
*
CreateKeyHandler
(
vlc_object_t
*
obj
,
xcb_connection_t
*
conn
)
{
msg_Err
(
obj
,
"X11 key press support not compiled-in"
);
(
void
)
conn
;
return
NULL
;
}
void
DestroyKeyHandler
(
key_handler_t
*
ctx
)
{
(
void
)
ctx
;
abort
();
}
int
ProcessKeyEvent
(
key_handler_t
*
ctx
,
xcb_generic_event_t
*
ev
)
{
(
void
)
ctx
;
(
void
)
ev
;
abort
();
}
#endif
/* HAVE_XCB_KEYSYMS */
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