Log

Author Commit Date CI Message
Bryce Harrington ea9a5bcf 2016-09-15T14:12:38 bench: Check for errors opening Compose file Otherwise it can segfault e.g. running ./compose inside the bench directory. Signed-off-by: Bryce Harrington <bryce@bryceharrington.org> Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 599fd9ba 2016-09-01T21:17:43 doc/compat: (! MODIFIER) syntax is parsed but ignored Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita c29afcc3 2016-09-01T21:13:49 doc/compat.md: xkbcomp ignores multiple-keysyms these days https://cgit.freedesktop.org/xorg/app/xkbcomp/commit/?id=e119cbec7e750ffc4d4bd08b577db2c697035a30 Signed-off-by: Ran Benita <ran234@gmail.com>
Bryce Harrington d58fc90a 2016-06-15T17:36:18 doc: Also mention the wayland test client in the quick guide Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Bryce Harrington 094c8dc5 2016-06-15T17:36:17 doc: Declare keymap for wayland example keymap was defined in the X11 example, but also define it in the wayland example just to make it a bit more standalone Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Bryce Harrington 832e32dc 2016-06-15T17:36:16 doc: Fix ctx type in example xkb_context_new() returns a xkb_context pointer, so change the variable definition to be consistent. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Daniel Stone 07be44ab 2016-04-12T13:47:26 PACKAGING: Update for interactive-wayland Signed-off-by: Daniel Stone <daniels@collabora.com>
Ran Benita 8978ec39 2016-06-09T17:23:55 test/interactive-wayland: fix control reaches end of non-void function AFAICS there is nothing that can fail directly in this function, so change it to void. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 0dd610fb 2016-06-09T16:32:05 keymap-dump: use consistent order set/latch/lock (style) Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita c8e6996f 2016-06-09T15:30:21 src/state: match_mod_masks can return bool instead of int Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 81ee012a 2016-06-09T14:52:34 test/symbols-leak-test: use more portable shebang Some BSDs don't want to give bash the honor of /bin and put it elsewhere. So look it up in PATH instead. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 316c7e24 2016-05-05T15:43:59 test/interactive-wayland: don't ignore asprintf return value Fixes warn_unused_result warning. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita fc41d3d6 2016-05-05T15:41:13 test: use termios instead of system() for disabling terminal echo Takes care of GCC's annoyingly persistent warn_unused_result warnings. But it's better to avoid system() I suppose. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 0da70c8d 2016-04-19T12:39:24 gitignore: ignore generated wayland protocol stubs Signed-off-by: Ran Benita <ran234@gmail.com>
Daniel Stone 48d5b44f 2016-04-12T13:19:25 interactive-wayland: Valgrind-proofing More meticulously free everything we create, including hooking up the buffer-release callback so we actually free those when required. Make sure seats are actually in the display's seat list. The xkbcommon object-unref functions don't actually require NULL-checking, so we can elide those. Signed-off-by: Daniel Stone <daniels@collabora.com>
Daniel Stone 7e123a10 2016-04-12T12:03:32 test: Add interactive-wayland interactive-wayland is very similar to x11/xev, and dumps out as much state as possible. It provides no titlebar and a completely random cursor, but such is life. Signed-off-by: Daniel Stone <daniels@collabora.com>
Daniel Stone 03f5d36b 2016-04-08T10:28:36 Bump version to 0.6.1 Our most minor release yet. Signed-off-by: Daniel Stone <daniels@collabora.com>
Daniel Stone bea54b1f 2016-03-31T16:42:41 Add LICENSE to distributed files Signed-off-by: Daniel Stone <daniels@collabora.com>
Ran Benita b91584a8 2016-03-26T01:53:18 doc: update reference to compat symbol to its new name Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 3fee46a2 2016-03-16T10:18:15 Bump version to 0.6.0 Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 4c24f7fa 2016-03-15T20:42:21 test: assert/ignore some warn_unused_result's Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 02628607 2016-03-15T20:38:16 Merge pull request #33 from bluetech/travis-enable-x11 travis: remove --disable-x11
Ran Benita ba3e6ce7 2016-03-15T19:44:48 travis: remove --disable-x11 Looks like the CI machines can use Ubuntu 14.04, which has libxcb 1.10, which is new enough. Lets see if it works. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 02e8b26c 2016-03-15T19:53:45 Merge pull request #32 from fooishbar/master doc: Fix Doxygen include for srcdir != builddir
Daniel Stone b04344ff 2016-03-15T11:30:57 travis: Enable documentation build Make sure Doxygen is installed before we build. Signed-off-by: Daniel Stone <daniels@collabora.com>
Daniel Stone a2974d5f 2016-03-15T11:20:35 doc: Fix Doxygen include for srcdir != builddir Instead of giving Doxygen a series of absolute paths to the source files and a relative path to the output directory, run it from the source directory with purely relative paths to the source files, and give it an absolute path to the build directory. This fixes the parsing of README.md with a separate build directory, since the relative includes for doc/quick-guide.md and doc/compat.md don't resolve otherwise. Doxygen's INCLUDE_PATH turns out not to fix this either, since that's just a set of paths to open and parse, rather than an analogue to cpp's -I. Signed-off-by: Daniel Stone <daniels@collabora.com>
Ran Benita d627549c 2016-03-13T23:38:40 Update NEWS Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 919b97a8 2016-03-13T23:33:18 NEWS: add some spacing Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 914e84e0 2016-03-13T23:09:21 build: don't run test/x11comp in make check for now For some reason, the dumped keymap started repeating the two key types FOUR_LEVEL_PLUS_LOCK and FOUR_LEVEL_KEYPAD. I need to investigate, but let's disable it for now until I do (the problem would likely not be in the xkbcommon - at most in the test itself). Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 37ee8e65 2016-03-13T22:56:48 test/x11comp: fix memory leak Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita fa1b4543 2016-03-13T20:56:58 test: add a test that all symbol version file is updated It is easy to forget to update these files when adding new symbols. Stolen with slight changes from libinput (commit by Marek Chalupa): https://cgit.freedesktop.org/wayland/libinput/commit/?id=a9f216ab47ea2f643f20ed741b741a2b5766eba3 Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 1c6d21b4 2016-03-13T20:42:39 Add symbol versions forgotten in 0ce17ef3ea3722c1cfe7af3 Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 712b39ac 2016-03-13T21:32:28 build: make it easier to add non-built (e.g. script) tests Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 763e2b7e 2016-03-13T20:24:44 src/utils: check if fileno() failed in map_file fileno() can fail, if called on e.g. fmemopen() FILEs which are not backed by a file descriptor. This functions uses mmap to map the entire file to memory, so using such FILEs will not work. (There is actually no change of behavior here, since the following fstat would have already failed with EBADF. But lets make it clear.) Another possibility is to fall back to the !HAVE_MMAP case; but it sounds like a better idea to leave it to the programmer to use the new_from_string/new_from_buffer functions instead, instead of doing double allocation behind their back. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 39082082 2016-02-28T00:33:19 keymap: share LevelsSameSyms() The function is generic enough. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita c8a25645 2016-02-28T00:02:05 state: factor out get_entry_for_mods() Will be useful later. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 9f5139b5 2016-02-27T19:43:07 state: factor out entry_is_active() check Makes the code slightly cleaner and I plan to use the function in another place. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita c991a7df 2016-01-20T23:30:21 build: fix distcheck File was renamed in 4266402. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita e8f04f22 2016-01-20T23:08:08 doc: add environment variables index Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 4aa50c9d 2016-01-20T22:48:10 doc: some notes about key names and aliases Signed-off-by: Ran Benita <ran234@gmail.com>
Mike Blumenkrantz 0ce17ef3 2016-01-20T11:40:43 keymap: add xkb_keymap_key_by_name(), xkb_keymap_key_get_name(), tests xkb_keymap_key_by_name() allows finding a keycode from a given keyname and is useful for generating keyboard events to use in regression tests during CI xkb_keymap_key_get_name() is the inverse of xkb_keymap_key_by_name() Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com> [ran: some stylistic tweaks + another test case] Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 7f3bb167 2015-11-23T00:07:15 doc/keymap-format-text-v1: add title and intro Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita cf337875 2015-11-21T23:17:55 doc/quick-guide: small improvements Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 42664023 2015-11-21T23:12:18 doc/keymap-format-text-v1: convert to markdown Make it more readable for random browsing. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 88919535 2015-11-21T22:39:38 doc/keymap-format-text-v1: update info on preserve Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 2cca0289 2015-11-19T00:44:27 src/utils: change map_file to not take const string argument map_file() uses PROT_READ, so const seems fitting; however unmap_file calls munmap/free, which do not take const, so an UNCONSTIFY is needed. To avoid the UNCONSTIFY hack, which is likely undefined behavior or some such, just remove the const. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita c7e2e6d7 2015-10-26T21:57:39 keymap: fix outdated comment See 725ae134d434bab6c999121d55dbc3582c4acb65. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 7bb425c1 2015-09-08T09:22:20 doc/Doxyfile: explicitly set HTML_TIMESTAMP = NO YES was the default in older version. Having a timestamp hurts reproducible builds, and serves no purpose, so remove it. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789071 Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 7a15c0ef 2015-09-08T09:21:32 doc/Doxyfile: only keep non-default values Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 8c0d6c79 2015-09-08T09:17:16 doc/Doxyfile: sync with latest version Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 13d23259 2015-09-07T14:45:09 state: reduce scope of fake action Also rename to "dummy" as I think it is a nicer name. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 6ee50326 2015-08-28T14:20:20 Merge pull request #27 from nuko8/osx_test_progs Modifications to make 'make check' test complete for Mac OS X
Kazunobu Kuriyama 3c12d671 2015-08-24T13:33:32 bench: Modify benchmarks for a wider range of platforms - Add the new files bench.c and bench.h to implement a timer module. - Implement the module with clock_gettime(), mach_absolute_time(), or gettimeofday(), depending on a given platform. - Replace the time measurement code of the benchmark programs with the functions of the module.
Kazunobu Kuriyama 91a19905 2015-08-24T13:44:20 test/x11comp: Fix contention between X11 and Xvfb on Mac OS X - Abandon use of -displayfd. - Have x11comp itself look for an unused X11 display number instead.
Ran Benita 74f85d05 2015-08-23T23:02:10 test/x11comp: remove duplicate FOUR_LEVEL_KEYPAD from test keymap The `test/data/keymaps/host.xkb` file contains a duplicate definition of this type. On my computer (linux, xkbcomp 1.3.0, xserver 1.17.2), the test passes as is, but if I remove the duplicate definition, the roundtrip brings it back and the test fails. I can also reproduce it without relation to the test, by loading `test/data/keymaps/host.xkb` (without the duplicate) using xkbcomp -I $(pwd)/test/data/keymaps/host.xkb $DISPLAY and downloading it again using xkbcomp $DISPLAY out.xkb the duplicate is added. On Mac OS X however, the duplicate is removed (correctly), so the test fails there. xkbcommon itself, which was forked from xkbcomp, doesn't have this bug; in fact, doing ./test/print-compiled-keymap -k keymaps/host.xkb removes the duplicate if it is present. This is (probably) a regression in xkbcomp or xserver compared to the versions used in Mac OS X. Since getting a patch for any of these two is hopeless from my experience, I did not try to investigate further. I am not sure why, but if I also add a `PC_SUPER_LEVEL2` type, the duplicate of `FOUR_LEVEL_KEYPAD` doesn't show up. Hopefully the test will work on all platforms now. https://github.com/xkbcommon/libxkbcommon/issues/26 Reported-by: @nuko8 Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita bdf68803 2015-08-23T22:22:11 test/x11comp: small simplifications xkbcomp doesn't need the search-path argument, since we pass an absolute path. Keep the plain -I which clears the search path just to be sure. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita afbe21a2 2015-07-20T11:46:15 Merge pull request #25 from mvo5/master Add XKB_CONFIG_ROOT environment
Michael Vogt 7ea129fb 2015-07-17T20:59:52 Add XKB_CONFIG_ROOT environment The XKB_CONFIG_ROOT environment allows overrding the build time DFLT_XKB_CONFIG_ROOT path.
Ran Benita 257e38c8 2015-07-17T23:26:20 build: don't fail if linker version scripts are not supported Some platforms (such as OSX) do not support version scripts. In these platforms the symbols will not be versioned, but it is OK to omit them. https://github.com/xkbcommon/libxkbcommon/issues/24
Ran Benita 8e1fed6c 2015-03-24T16:40:29 compose: correctly parse modifier syntax As described in: http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=ddf3b09bb262d01b56fbaade421ac85b0e60a69f Signed-off-by: Ran Benita <ran234@gmail.com>
Daniel Stone c8c41c01 2015-03-10T12:20:01 rename to LICENSE GitHub uses 'LICENSE' to scrape for repository license information, cf. https://github.com/blog/1964-open-source-license-usage-on-github-com Rename to make it a bit easier for it.
Ran Benita b0450847 2015-02-19T17:03:06 doc: some editorial changes to compose documentation Use nicer Markdown syntax, `surround` some words, fix some typos. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 74482de6 2015-02-03T20:50:52 test/common: print keycode in decimal not hex Keycodes are usually written in decimal, so hex is hard to compare. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita ca58937d 2014-10-24T23:40:24 configure.ac: also print ${datarootdir} in summary It goes something like: ${XLOCALEDIR} -> ${datarootdir}/locale/X11 -> ${prefix}/share/locale/X11 -> /usr/share/locale/X11 But AC_MSG_RESULT only performs one substitution. Instead of starting to expand this stuff manually, just print datarootdir so all the pieces are there. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita dc275a28 2014-10-24T23:06:07 PACKAGING: fix confusing typo Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 508fbcd1 2014-10-24T23:03:41 doc: explain the envvars which affect compose Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 91620179 2014-10-23T21:03:13 keycodes: use correct printf format Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita c03834a1 2014-10-23T21:00:20 Reduce variable scopes Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 5e3615b2 2014-10-18T20:04:57 ast-build: remove log message about allocation failure We don't do so anywhere else, so until we have something comprehensive, let's not so here. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 4a660d7f 2014-10-18T19:47:19 xkbcomp: remove file->topName It is useless. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 96a29ede 2014-10-18T19:22:56 xkbcomp/keymap: remove useless free() Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita c43c3c86 2014-10-18T16:41:59 Bump version to 0.5.0 Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 60104e79 2014-10-18T16:35:49 Update NEWS Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita b92f7924 2014-10-18T16:38:13 Change initial symbol file versions to V_0.5.0 It will be quite confusing to use V_0.4.3 since this was already released without symbol versioning. Hopefully this doesn't cause any trouble for people who are using -git. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 47bb9fd1 2014-10-18T16:37:46 compose: fill @since TBD Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita aa41d883 2014-10-18T16:03:41 doc/compat.md: add compose incompatibilities Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 413954aa 2014-10-18T15:51:41 Add PACKAGING file Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 047d0612 2014-10-18T15:07:37 Makefile.am: add symbol files to EXTRA_DIST Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 6337d789 2014-10-18T14:52:54 README: we also accepts patches through github Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 0419f6e7 2014-10-18T14:50:49 docs: make html output have a fixed width, hide footer It's hard to read text which stretches indefinitely. The footer is not adding much. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita b05a05ed 2014-10-18T14:29:37 README: add notes about Compose support Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 49dc91ce 2014-10-18T14:12:14 doc/quick-guide: some improvements Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita bac0c323 2014-10-18T13:58:56 README: remove elaborate details from the intro Point to the "quick guide" instead. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita ab9cb11c 2014-10-18T13:53:25 doc/compat.md: we don't support more groups or mods yet Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 494a8fbf 2014-10-18T13:50:54 README: move compatibility notes to their own page Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 2e8ab383 2014-10-18T13:44:02 README: link to online API docs Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita cb461893 2014-10-18T13:34:15 README: move note about xkeyboard-config to its own section Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 8bf1e193 2014-10-18T13:31:32 README: remove section on API stability This was useful when we *weren't* stable. But now that we are this should be obvious. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita f774f819 2014-10-18T13:23:53 Replace some strncmp's with memcmp Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita a4cc119b 2014-10-18T12:36:40 compose/parser: save len in keysym_from_name cache This reduces a lot of strcmp's, and allows to use a faster memcmp. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita a0d2b029 2014-10-17T01:14:57 test/keyseq: test 'map[None] = Level2;' scenario See previous commit for an explanation. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 312182ce 2014-10-16T17:55:46 test/data: add files for model=applealu_ansi layout=us Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita c6ee6371 2014-10-16T17:48:00 test/data: sync to xkeyboard-config 2.13 (Run ./test/data/sync.sh). Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 30e7445d 2014-10-17T00:41:05 state: correctly infer inactive type entries The current test is incorrect, since 'map[None]' is entirely valid. In most cases this doesn't cause any problems, since the default fallback is Level1, and it's almost always 'map[None] = Level1' anyway. But in one case in xkeyboard-config it isn't, in types/numpad(mac): type "KEYPAD" { modifiers = None; map[None] = Level2; level_name[Level2] = "Number"; }; So before checking if no modifiers were mapped, make sure there *were* any modifiers at all. https://bugs.freedesktop.org/show_bug.cgi?id=85092 Reported-by: Gatis Paeglis <gatis.paeglis@digia.com> Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita a4c667ad 2014-10-17T00:13:48 symbols: don't warn about conflicting syms if they are the same Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 2e5530ad 2014-10-16T18:51:51 parser: bring back warning about includes of files with no default Using the same format as xkbcomp. Signed-off-by: Ran Benita <ran234@gmail.com>
Ran Benita 57ad452b 2014-10-16T13:11:26 Merge pull request #14 from jasperla/undefined disable -Wl,--no-undefined on OpenBSD for it doesn't have DT_NEEDED for libc
Jasper Lievisse Adriaanse dff65c0c 2014-10-16T11:35:18 disable -Wl,--no-undefined on OpenBSD for it doesn't have DT_NEEDED for libc
Ran Benita 1595f2b7 2014-10-15T22:38:17 Merge pull request #13 from jasperla/librt Make librt optional, required for at least OpenBSD
Jasper Lievisse Adriaanse 3e169c47 2014-10-15T21:08:17 Make librt optional, required for at least OpenBSD