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
ba423412
Commit
ba423412
authored
Oct 09, 2009
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
globalhotkeys xcb : fix modifiers with xcb-keysyms >= 0.3.4
parent
0ee1c43f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
modules/control/globalhotkeys/xcb.c
modules/control/globalhotkeys/xcb.c
+19
-1
No files found.
modules/control/globalhotkeys/xcb.c
View file @
ba423412
...
@@ -182,6 +182,9 @@ static unsigned GetModifier( xcb_connection_t *p_connection, xcb_key_symbols_t *
...
@@ -182,6 +182,9 @@ static unsigned GetModifier( xcb_connection_t *p_connection, xcb_key_symbols_t *
XCB_MOD_MASK_4
,
XCB_MOD_MASK_5
XCB_MOD_MASK_4
,
XCB_MOD_MASK_5
};
};
if
(
sym
==
0
)
return
0
;
/* no modifier */
#ifdef XCB_KEYSYM_OLD_API
/* as seen in Debian Lenny */
#ifdef XCB_KEYSYM_OLD_API
/* as seen in Debian Lenny */
const
xcb_keycode_t
key
=
xcb_key_symbols_get_keycode
(
p_symbols
,
sym
);
const
xcb_keycode_t
key
=
xcb_key_symbols_get_keycode
(
p_symbols
,
sym
);
if
(
key
==
0
)
if
(
key
==
0
)
...
@@ -190,6 +193,21 @@ static unsigned GetModifier( xcb_connection_t *p_connection, xcb_key_symbols_t *
...
@@ -190,6 +193,21 @@ static unsigned GetModifier( xcb_connection_t *p_connection, xcb_key_symbols_t *
const
xcb_keycode_t
*
p_keys
=
xcb_key_symbols_get_keycode
(
p_symbols
,
sym
);
const
xcb_keycode_t
*
p_keys
=
xcb_key_symbols_get_keycode
(
p_symbols
,
sym
);
if
(
!
p_keys
)
if
(
!
p_keys
)
return
0
;
return
0
;
int
i
=
0
;
bool
no_modifier
=
true
;
while
(
p_keys
[
i
]
!=
XCB_NO_SYMBOL
)
{
if
(
p_keys
[
i
]
!=
0
)
{
no_modifier
=
false
;
break
;
}
i
++
;
}
if
(
no_modifier
)
return
0
;
#endif
#endif
xcb_get_modifier_mapping_cookie_t
r
=
xcb_get_modifier_mapping_cookie_t
r
=
...
@@ -344,7 +362,7 @@ static void Mapping( intf_thread_t *p_intf )
...
@@ -344,7 +362,7 @@ static void Mapping( intf_thread_t *p_intf )
{
{
const
unsigned
i_ignored
=
GetModifier
(
p_sys
->
p_connection
,
const
unsigned
i_ignored
=
GetModifier
(
p_sys
->
p_connection
,
p_sys
->
p_symbols
,
p_x11_modifier_ignored
[
i
]
);
p_sys
->
p_symbols
,
p_x11_modifier_ignored
[
i
]
);
if
(
i
!=
0
&&
i_ignored
==
0
x00
)
if
(
i
!=
0
&&
i_ignored
==
0
)
continue
;
continue
;
hotkey_mapping_t
*
p_map_old
=
p_sys
->
p_map
;
hotkey_mapping_t
*
p_map_old
=
p_sys
->
p_map
;
...
...
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