Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
fe4273de
Commit
fe4273de
authored
Feb 19, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/global: update to key items as strings
parent
325436b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
modules/control/globalhotkeys/xcb.c
modules/control/globalhotkeys/xcb.c
+10
-7
No files found.
modules/control/globalhotkeys/xcb.c
View file @
fe4273de
...
...
@@ -307,16 +307,19 @@ static bool Mapping( intf_thread_t *p_intf )
p_hotkey
->
psz_action
!=
NULL
;
p_hotkey
++
)
{
char
*
psz_hotkey
;
if
(
asprintf
(
&
psz_hotkey
,
"global-%s"
,
p_hotkey
->
psz_action
)
<
0
)
break
;
const
int
i_vlc_action
=
p_hotkey
->
i_action
;
c
onst
int
i_vlc_key
=
var_InheritInteger
(
p_intf
,
psz_hotkey
)
;
free
(
psz_hotkey
);
c
har
varname
[
12
+
strlen
(
p_hotkey
->
psz_action
)]
;
sprintf
(
varname
,
"global-key-%s"
,
p_hotkey
->
psz_action
);
if
(
!
i_vlc_key
)
char
*
key
=
var_InheritString
(
p_intf
,
varname
);
if
(
key
==
NULL
)
continue
;
uint_fast32_t
i_vlc_key
=
vlc_str2keycode
(
key
);
free
(
key
);
if
(
i_vlc_key
==
KEY_UNSET
)
continue
;
#ifdef XCB_KEYSYM_OLD_API
/* as seen in Debian Lenny */
const
xcb_keycode_t
key
=
xcb_key_symbols_get_keycode
(
p_sys
->
p_symbols
,
GetX11Key
(
i_vlc_key
&
~
KEY_MODIFIER
)
);
...
...
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