summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-05-17 18:00:26 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-05-19 13:17:30 -0400
commit2b2367b6ff228ec8b4aa5d25fb7757ee1fa081e8 (patch)
treebd6bc57328c5030d873cdc8994eeaa4a9f6a5726 /src/lib/ecore_wl2/ecore_wl2_input.c
parentf4ad162eefa18235d68e9bd4c8cb8b15ba626bb4 (diff)
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
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c28
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
455static int 455static int
456_ecore_wl2_input_key_translate(xkb_keysym_t keysym, unsigned int modifiers, char *buffer, int bytes) 456_ecore_wl2_input_key_translate(xkb_keysym_t keysym, unsigned int modifiers, char *buffer, int bytes)
457{ 457{
458/* this function is copied, with slight changes in variable names, from KeyBind.c in libX11
459 * the license from that file can be found below:
460 */
461/*
462
463Copyright 1985, 1987, 1998 The Open Group
464
465Permission to use, copy, modify, distribute, and sell this software and its
466documentation for any purpose is hereby granted without fee, provided that
467the above copyright notice appear in all copies and that both that
468copyright notice and this permission notice appear in supporting
469documentation.
470
471The above copyright notice and this permission notice shall be included in
472all copies or substantial portions of the Software.
473
474THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
475IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
476FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
477OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
478AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
479CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
480
481Except as contained in this notice, the name of The Open Group shall not be
482used in advertising or otherwise to promote the sale, use or other dealings
483in this Software without prior written authorization from The Open Group.
484
485*/
458 if (!keysym) return 0; 486 if (!keysym) return 0;
459 487
460 /* check for possible control codes */ 488 /* check for possible control codes */