discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2b2367b6ff228ec8b4aa5d25fb7757ee1fa081e8

commit 2b2367b6ff228ec8b4aa5d25fb7757ee1fa081e8
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed May 17 18:00:26 2017 -0400

    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
---
 src/lib/ecore_wl2/ecore_wl2_input.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c 
b/src/lib/ecore_wl2/ecore_wl2_input.c
index 9ef1d82..790ef8a 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 */

-- 


Reply via email to