Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
8725f986
Commit
8725f986
authored
Jan 03, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/window: legacy non-Unicode key symbols
parent
4090e067
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
682 additions
and
1 deletion
+682
-1
modules/video_output/Modules.am
modules/video_output/Modules.am
+1
-1
modules/video_output/xcb/keys.c
modules/video_output/xcb/keys.c
+7
-0
modules/video_output/xcb/keysym.h
modules/video_output/xcb/keysym.h
+674
-0
No files found.
modules/video_output/Modules.am
View file @
8725f986
...
...
@@ -53,7 +53,7 @@ libxcb_glx_plugin_la_LIBADD = $(AM_LIBADD) \
$(XLIB_XCB_LIBS) $(GL_LIBS)
libxcb_glx_plugin_la_DEPENDENCIES =
libxcb_window_plugin_la_SOURCES = xcb/window.c xcb/keys.c
libxcb_window_plugin_la_SOURCES = xcb/window.c xcb/keys.c
xcb/keysym.h
libxcb_window_plugin_la_CFLAGS = $(AM_CFLAGS) \
$(XPROTO_CFLAGS) \
$(XCB_CFLAGS) \
...
...
modules/video_output/xcb/keys.c
View file @
8725f986
...
...
@@ -173,6 +173,8 @@ static uint_fast32_t ConvertKeySym (xcb_keysym_t sym)
{
XF86XK_Favorites
,
KEY_BROWSER_FAVORITES
,
},
{
XF86XK_AudioPause
,
KEY_MEDIA_PLAY_PAUSE
,
},
{
XF86XK_Reload
,
KEY_BROWSER_REFRESH
,
},
},
old
[]
=
{
#include "keysym.h"
};
/* X11 Latin-1 range */
...
...
@@ -187,6 +189,11 @@ static uint_fast32_t ConvertKeySym (xcb_keysym_t sym)
keysymcmp
);
if
(
res
!=
NULL
)
return
res
->
vlc
;
/* Legacy X11 symbols outside the Unicode range */
res
=
bsearch
(
&
sym
,
old
,
sizeof
(
old
)
/
sizeof
(
old
[
0
]),
sizeof
(
old
[
0
]),
keysymcmp
);
if
(
res
!=
NULL
)
return
res
->
vlc
;
return
KEY_UNSET
;
}
...
...
modules/video_output/xcb/keysym.h
0 → 100644
View file @
8725f986
This diff is collapsed.
Click to expand it.
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