From 321c01267ae1c446f1bd22b642567fcafa016c02 Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 4 Mar 2014 08:57:07 +0100 Subject: libX11 libxcb mesa xserver xcb-proto xkeyboard-config git update 4 Mar 2014 xserver commit b634e909895f6001e7d9543e1350b20c82c8c01c libxcb commit 4ffa6f83b92763eb901c7ddb7c20775e24d507ca libxcb/xcb-proto commit 4270141a7cb3c68f50251be19a5a628aa18553e6 xkeyboard-config commit d9e3d0ec1a48a5f61ea6dd6d20b8682eeecf3a39 libX11 commit d6bd988bc00494914b38b95ee5df77ac4f32f19f libXdmcp commit 089081dca4ba3598c6f9bf401c029378943b5854 libXext commit d5447c0156f556114dbf97d6064c0c7b0fcd5f70 libfontenc commit 0037a42107b952c9d903719615747e760e4e7247 libXinerama commit edd95182b26eb5d576d4878c559e0f17dddaa909 libXau commit 1e4635be11154dd8262f37b379511bd627defa2a xkbcomp commit 31b90ee4ffc774e0da540277907fc5540c0b012c pixman commit 82d094654a46bd97d47f1f132a01ae0a74b986f3 xextproto commit 66afec3f49e8eb0d4c2e9af7088fc3116d4bafd7 randrproto commit a4a6694c059d74247c16527eef4a0ec9f56bbef6 glproto commit f84853d97d5749308992412a215fa518b6536eb3 mkfontscale commit eac564e0fc9052a39981ea47b271f7f3d2821944 xwininfo commit ba0d1b0da21d2dbdd81098ed5778f3792b472e13 libXft commit 4acfdaf95adb0a05c2a25550bdde036c865902f4 libXmu commit 22d9c590901e121936f50dee97dc60c4f7defb63 libxtrans commit 3f0de269abe59353acbd7a5587d68ce0da91db67 fontconfig commit e310d2fac2d874d5aa76c609df70cc7b871c0b6d mesa commit 1a568e0f2b65e4e1e1d19a6dece3a792a33da825 --- libX11/man/xkb/XkbGetMap.man | 2 +- libX11/nls/km_KH.UTF-8/Compose.pre | 2 +- libX11/nls/sr_CS.UTF-8/Compose.pre | 32 ++++++------ libX11/src/KeyBind.c | 72 -------------------------- libX11/src/Xrm.c | 4 +- libX11/src/xkb/XKBBind.c | 102 ------------------------------------- 6 files changed, 20 insertions(+), 194 deletions(-) (limited to 'libX11') diff --git a/libX11/man/xkb/XkbGetMap.man b/libX11/man/xkb/XkbGetMap.man index b51704c74..c78d4545d 100644 --- a/libX11/man/xkb/XkbGetMap.man +++ b/libX11/man/xkb/XkbGetMap.man @@ -106,7 +106,7 @@ in are undefined), or BadImplementation (a compatible version of the Xkb extension is not available in the server). To free the returned data, use -.I XkbFreeClientMap. +.I XkbFreeKeyboard. Xkb also provides convenience functions to get partial component definitions from the diff --git a/libX11/nls/km_KH.UTF-8/Compose.pre b/libX11/nls/km_KH.UTF-8/Compose.pre index 77651d085..dc89119ae 100644 --- a/libX11/nls/km_KH.UTF-8/Compose.pre +++ b/libX11/nls/km_KH.UTF-8/Compose.pre @@ -1,6 +1,6 @@ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose" -# Khmer digraphs +XCOMM Khmer digraphs : "ាំ" : "ោះ" : "េះ" diff --git a/libX11/nls/sr_CS.UTF-8/Compose.pre b/libX11/nls/sr_CS.UTF-8/Compose.pre index 119e23ec4..b2397f7b3 100644 --- a/libX11/nls/sr_CS.UTF-8/Compose.pre +++ b/libX11/nls/sr_CS.UTF-8/Compose.pre @@ -1,17 +1,17 @@ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose" -# Serbian accented Cyrillic -# а А - U+0430, U+0410 Cyrillic_a, Cyrillic_A -# е Е - U+0435, U+0415 Cyrillic_e, Cyrillic_E -# о О - U+043E, U+041E Cyrillic_o, Cyrillic_O -# у У - U+0443, U+0423 Cyrillic_u, Cyrillic_U -# и И - U+0438, U+0418 Cyrillic_i, Cyrillic_I -# -# ̀ - U+0300 , , -# ́ - U+0301 , , , -# ̂ - U+0302 , -# ̏ - U+030F , -# ̀ - kratkouzlazni, U+0300 , , +XCOMM Serbian accented Cyrillic +XCOMM а А - U+0430, U+0410 Cyrillic_a, Cyrillic_A +XCOMM е Е - U+0435, U+0415 Cyrillic_e, Cyrillic_E +XCOMM о О - U+043E, U+041E Cyrillic_o, Cyrillic_O +XCOMM у У - U+0443, U+0423 Cyrillic_u, Cyrillic_U +XCOMM и И - U+0438, U+0418 Cyrillic_i, Cyrillic_I +XCOMM +XCOMM ̀ - U+0300 , , +XCOMM ́ - U+0301 , , , +XCOMM ̂ - U+0302 , +XCOMM ̏ - U+030F , +XCOMM ̀ - kratkouzlazni, U+0300 , , : "а̀" : "а̀" : "а̀" @@ -42,7 +42,7 @@ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose" : "У̀" : "У̀" : "У̀" -# ́ - dugouzlazni, U+0301 , , , +XCOMM ́ - dugouzlazni, U+0301 , , , : "а́" : "а́" : "а́" @@ -83,7 +83,7 @@ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose" : "У́" : "У́" : "У́" -# ̂ - dugosilazni, U+0302 , +XCOMM ̂ - dugosilazni, U+0302 , : "а̂" : "а̂" : "А̂" @@ -104,8 +104,8 @@ include "X11_LOCALEDATADIR/en_US.UTF-8/Compose" : "у̂" : "У̂" : "У̂" -# ̏ - kratkosilazni, U+030F , -# there's no appropriate dead_doublegrave, so we use these two dead keys +XCOMM ̏ - kratkosilazni, U+030F , +XCOMM there's no appropriate dead_doublegrave, so we use these two dead keys : "а̏" : "а̏" : "А̏" diff --git a/libX11/src/KeyBind.c b/libX11/src/KeyBind.c index a49de3d78..f64f116b8 100644 --- a/libX11/src/KeyBind.c +++ b/libX11/src/KeyBind.c @@ -48,11 +48,6 @@ in this Software without prior written authorization from The Open Group. #include #include -#ifdef USE_OWN_COMPOSE -#include "imComp.h" - -#endif - #include "Xresource.h" #include "Key.h" @@ -891,73 +886,6 @@ XLookupString ( &modifiers, &symbol)) return 0; -#ifdef USE_OWN_COMPOSE - if ( status ) { - static int been_here= 0; - if ( !been_here ) { - XimCompInitTables(); - been_here = 1; - } - if ( !XimCompLegalStatus(status) ) { - status->compose_ptr = NULL; - status->chars_matched = 0; - } - if ( ((status->chars_matched>0)&&(status->compose_ptr!=NULL)) || - XimCompIsComposeKey(symbol,event->keycode,status) ) { - XimCompRtrn rtrn; - switch (XimCompProcessSym(status,symbol,&rtrn)) { - case XIM_COMP_IGNORE: - break; - case XIM_COMP_IN_PROGRESS: - if ( keysym!=NULL ) - *keysym = NoSymbol; - return 0; - case XIM_COMP_FAIL: - { - int n = 0, len= 0; - for (n=len=0;rtrn.sym[n]!=XK_VoidSymbol;n++) { - if ( nbytes-len > 0 ) { - len+= _XTranslateKeySym(event->display,rtrn.sym[n], - event->state, - buffer+len,nbytes-len); - } - } - if ( keysym!=NULL ) { - if ( n==1 ) *keysym = rtrn.sym[0]; - else *keysym = NoSymbol; - } - return len; - } - case XIM_COMP_SUCCEED: - { - int len,n = 0; - - symbol = rtrn.matchSym; - if ( keysym!=NULL ) *keysym = symbol; - if ( rtrn.str[0]!='\0' ) { - strncpy(buffer,rtrn.str,nbytes-1); - buffer[nbytes-1]= '\0'; - len = strlen(buffer); - } - else { - len = _XTranslateKeySym(event->display,symbol, - event->state, - buffer,nbytes); - } - for (n=0;rtrn.sym[n]!=XK_VoidSymbol;n++) { - if ( nbytes-len > 0 ) { - len+= _XTranslateKeySym(event->display,rtrn.sym[n], - event->state, - buffer+len,nbytes-len); - } - } - return len; - } - } - } - } -#endif - if (keysym) *keysym = symbol; /* arguable whether to use (event->state & ~modifiers) here */ diff --git a/libX11/src/Xrm.c b/libX11/src/Xrm.c index 36b71d699..74495f25f 100644 --- a/libX11/src/Xrm.c +++ b/libX11/src/Xrm.c @@ -349,7 +349,7 @@ void XrmSetDatabase( XrmDatabase database) { LockDisplay(display); - /* destroy database if set up imlicitely by XGetDefault() */ + /* destroy database if set up implicitly by XGetDefault() */ if (display->db && (display->flags & XlibDisplayDfltRMDB)) { XrmDestroyDatabase(display->db); display->flags &= ~XlibDisplayDfltRMDB; @@ -508,7 +508,7 @@ static XrmDatabase NewDatabase(void) } /* move all values from ftable to ttable, and free ftable's buckets. - * ttable is quaranteed empty to start with. + * ttable is guaranteed empty to start with. */ static void MoveValues( LTable ftable, diff --git a/libX11/src/xkb/XKBBind.c b/libX11/src/xkb/XKBBind.c index 29870b574..24d37e346 100644 --- a/libX11/src/xkb/XKBBind.c +++ b/libX11/src/xkb/XKBBind.c @@ -41,11 +41,6 @@ from The Open Group. #include #include "XKBlibint.h" -#ifdef USE_OWN_COMPOSE -#define COMPOSE_NO_CONST_MEMBERS -#include "imComp.h" -#endif - #define AllMods (ShiftMask|LockMask|ControlMask| \ Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask) @@ -725,103 +720,6 @@ XLookupString(register XKeyEvent *event, } } -#ifdef USE_OWN_COMPOSE - if (status) { - static int been_here = 0; - - if (!been_here) { - XimCompInitTables(); - been_here = 1; - } - if (!XimCompLegalStatus(status)) { - status->compose_ptr = NULL; - status->chars_matched = 0; - } - if (((status->chars_matched > 0) && (status->compose_ptr != NULL)) || - XimCompIsComposeKey(*keysym, event->keycode, status)) { - XimCompRtrn rtrn; - - switch (XimCompProcessSym(status, *keysym, &rtrn)) { - case XIM_COMP_IGNORE: - break; - case XIM_COMP_IN_PROGRESS: - if (keysym != NULL) - *keysym = NoSymbol; -#ifndef NO_COMPOSE_LED - if (dpy->xkb_info->xlib_ctrls & XkbLC_ComposeLED) { - XkbSetNamedIndicator(dpy, dpy->xkb_info->composeLED, - True, True, False, NULL); - } -#endif - return 0; - case XIM_COMP_FAIL: - { - static Atom _ComposeFail = None; - int n = 0, len = 0; - -#ifndef NO_COMPOSE_LED - if (dpy->xkb_info->xlib_ctrls & XkbLC_ComposeLED) { - XkbSetNamedIndicator(dpy, dpy->xkb_info->composeLED, - True, False, False, NULL); - } -#endif -#ifndef NO_BELL_ON_COMPOSE_FAIL - if (dpy->xkb_info->xlib_ctrls & XkbLC_BeepOnComposeFail) { - if (_ComposeFail == None) - _ComposeFail = XInternAtom(dpy, "ComposeFail", 0); - XkbBell(dpy, event->window, 0, _ComposeFail); - } -#endif - for (n = len = 0; rtrn.sym[n] != XK_VoidSymbol; n++) { - if (nbytes - len > 0) { - len += XkbTranslateKeySym(dpy, &rtrn.sym[n], new_mods, - buffer + len, nbytes - len, - NULL); - } - } - if (keysym != NULL) { - if (n == 1) - *keysym = rtrn.sym[0]; - else - *keysym = NoSymbol; - } - return len; - } - case XIM_COMP_SUCCEED: - { - int len, n = 0; - -#ifndef NO_COMPOSE_LED - if (dpy->xkb_info->xlib_ctrls & XkbLC_ComposeLED) { - XkbSetNamedIndicator(dpy, dpy->xkb_info->composeLED, - True, False, False, NULL); - } -#endif - *keysym = rtrn.matchSym; - if (rtrn.str[0] != '\0') { - strncpy(buffer, rtrn.str, nbytes - 1); - buffer[nbytes - 1] = '\0'; - len = (int) strlen(buffer); - } - else { - len = XkbTranslateKeySym(dpy, keysym, new_mods, - buffer, nbytes, NULL); - } - for (n = 0; rtrn.sym[n] != XK_VoidSymbol; n++) { - if (nbytes - len > 0) { - len += XkbTranslateKeySym(dpy, &rtrn.sym[n], - event->state, - buffer + len, nbytes - len, - NULL); - } - } - return len; - } - } - } - } -#endif - /* We *should* use the new_mods (which does not contain any modifiers */ /* that were used to compute the symbol here, but pre-XKB XLookupString */ /* did not and we have to remain compatible. Sigh. */ -- cgit v1.2.3