diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-05-17 18:00:26 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-05-19 13:17:30 -0400 |
commit | 2b2367b6ff228ec8b4aa5d25fb7757ee1fa081e8 (patch) | |
tree | bd6bc57328c5030d873cdc8994eeaa4a9f6a5726 | |
parent | f4ad162eefa18235d68e9bd4c8cb8b15ba626bb4 (diff) | |
download | efl-2b2367b6ff228ec8b4aa5d25fb7757ee1fa081e8.tar.gz |
ecore-wl2: add copyright info to code copied from libX11
this code has been slightly modified, but it was originally taken without
attribution from libX11/src/KeyBind.c
ref 08c804f5bb2de3cb5a7e95b1264b30043d1aea6f
@fix
-rw-r--r-- | src/lib/ecore_wl2/ecore_wl2_input.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c index 9ef1d8282c..790ef8ae86 100644 --- a/src/lib/ecore_wl2/ecore_wl2_input.c +++ b/src/lib/ecore_wl2/ecore_wl2_input.c @@ -455,6 +455,34 @@ _ecore_wl2_input_focus_out_send(Ecore_Wl2_Window *window, Ecore_Wl2_Input *input static int _ecore_wl2_input_key_translate(xkb_keysym_t keysym, unsigned int modifiers, char *buffer, int bytes) { +/* this function is copied, with slight changes in variable names, from KeyBind.c in libX11 + * the license from that file can be found below: + */ +/* + +Copyright 1985, 1987, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +*/ if (!keysym) return 0; /* check for possible control codes */ |