projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a45b7d7
)
state: remove unneeded optimization
author
Ran Benita
<ran234@gmail.com>
Thu, 30 Aug 2012 14:15:39 +0000
(17:15 +0300)
committer
Ran Benita
<ran234@gmail.com>
Sun, 2 Sep 2012 16:17:09 +0000
(19:17 +0300)
The code that follows does exactly that.
Signed-off-by: Ran Benita <ran234@gmail.com>
src/state.c
patch
|
blob
|
history
diff --git
a/src/state.c
b/src/state.c
index
0f93cc7
..
6263fba
100644
(file)
--- a/
src/state.c
+++ b/
src/state.c
@@
-541,9
+541,6
@@
xkb_state_led_update_all(struct xkb_state *state)
xkb_mod_mask_t mod_mask = 0;
uint32_t group_mask = 0;
- if (!map->which_mods && !map->which_groups && !map->ctrls)
- continue;
-
if (map->which_mods & XkbIM_UseAnyMods) {
if (map->which_mods & XkbIM_UseBase)
mod_mask |= state->base_mods;