X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ioncore%2Fregbind.c;h=a50da9d0af871c38a33414eec69b837b2173bed7;hb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a;hp=43bc3a6d38558476bc8d88414379f471102ba172;hpb=8366314611bf30a0f31d25bf5f5023186fa87692;p=ion3.git diff --git a/ioncore/regbind.c b/ioncore/regbind.c index 43bc3a6..a50da9d 100644 --- a/ioncore/regbind.c +++ b/ioncore/regbind.c @@ -1,12 +1,9 @@ /* * ion/regbind.c * - * Copyright (c) Tuomo Valkonen 1999-2006. + * Copyright (c) Tuomo Valkonen 1999-2009. * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #include @@ -199,7 +196,8 @@ void region_remove_bindings(WRegion *reg) } -WBinding *region_lookup_keybinding(WRegion *reg, const XKeyEvent *ev, +WBinding *region_lookup_keybinding(WRegion *reg, + int act, uint state, uint kcb, const WSubmapState *sc, WRegion **binding_owner_ret) { @@ -233,7 +231,7 @@ WBinding *region_lookup_keybinding(WRegion *reg, const XKeyEvent *ev, continue; } - binding=bindmap_lookup_binding(bindmap, BINDING_KEYPRESS, ev->state, ev->keycode); + binding=bindmap_lookup_binding(bindmap, act, state, kcb); if(binding!=NULL) break;