summaryrefslogtreecommitdiff
path: root/external
AgeCommit message (Collapse)AuthorFilesLines
2013-10-29build: link eloop staticallyDavid Herrmann3-376/+0
We don't want to export libeloop so link it statically. Avoid installing into into the system. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
2012-12-10tsm: unicode: add wcwidth() implementationDavid Herrmann2-0/+327
wcwidth() is a POSIX function that returns the number of cells that a wide-character occupies. The glibc function cannot be used as it depends on the locale and we need _always_ UTF8 no matter what the locale is. This implementation is provided by Markus Kuhn and is equivalent to xterm's behavior. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-10-15external: remove unused imKStoUCS filesRan Benita2-453/+0
We needed these files before libxkbcommon had a function to convert keysyms to unicode, and then for the 'plain' keyboard backend, which didn't use libxkbcommon. Since this backend was removed, these files are no longer needed. Signed-off-by: Ran Benita <ran234@gmail.com> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-10-01Make xkbcommon mandatoryDavid Herrmann1-3013/+0
We really need xkbcommon. There is so much stuff (including parsing of keyboard shortcuts in conf.c) that depends on it. Therefore, we make it mandatory now which allows us to use xkbcommon functions all over the place. Note that xkbcommon itself has no runtime dependencies so it is a small self-contained library. The only reason I didn't do this ealier is that xkbcommon has not seen a public release, yet. However, that should be done in the near future. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-09-18build: make xkbcommon built-time dependencyDavid Herrmann1-0/+3013
We really need xkbcommon-keysyms.h for building kmscon/uterm/TSM/etc. However, the recent fix was ugly and didn't really help. Instead we copy the keysyms file into external/xkbcommon/ so we can just include the real xkbcommon files from any source but have a fallback in external/. Hence, you can still build kmscon without xkbcommon with this fallback, but this will be removed the first day when xkbcommon sees a public release. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-09-11uterm: add uterm_keysyms.hDavid Herrmann1-2999/+0
We need a copy of xkbcommon-keysyms.h as long as xkbcommon is not included in all major distributions. We _need_ this build-time dependency, otherwise, we cannot build the other keyboard backends. However, requiring xkbcommon as build-time dependency is not a solution as no major distribution includes it. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-09-11external: add xkbcommon-keysyms.hDavid Herrmann1-0/+2999
If libxkbcommon is not available on the current platform, we still want to be able to use the keysyms. We currently do this by depending on xproto but this is ugly and we want to avoid this. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-09-08build: fix dbus-loop buildDavid Herrmann1-2/+2
We need to include everything in the distribution and fix the include-path, otherwise, we might get "distcheck" errors. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-07-30external: htable: remove config.h inclusionDavid Herrmann1-1/+0
There is no need to include config.h manually so remove this to avoid compilation errors when compiling external applications. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-07-14Add optional dbus supportDavid Herrmann3-0/+376
As we might need dbus for inter-process-communication later, this adds a very rudimentary dbus client integration for epoll-based loops. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-07-01misc: remove glib dependencyDavid Herrmann2-0/+449
This adds a new drop-in replacement for the glib hashtable implementation. The hash table can be found at github: github.com/rustyrussel/ccan It's licensed under the terms of the LGPL and perfect for our implementation. Please see COPYING for license information. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2011-12-31input: shuffle headers and includesRan Benita2-2/+7
Just some renames/moving/prefixing to conform to the style of the other files. Signed-off-by: Ran Benita <ran234@gmail.com> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2011-12-31Correctly set Xlib copyright headersRan Benita2-2/+120
Signed-off-by: Ran Benita <ran234@gmail.com> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2011-12-31input: use libxkbcommon to convert input eventsRan Benita2-0/+330
This commit introduces a new kmscon_input_event structure which is delivered to the input consumer. The information provided is - The evdev scancode (=physical keyboard key). - The X keysym (a symbol representing what the typist really intended). - The active modifiers (e.g. Shift, Control..) - The unicode (UCS-4) value, when it makes sense. To achieve this we add two dependencies: - libxkbcommon (this entails xproto and kbproto, but shouldn't bring any of big X dependencies) - A function to translate keysyms to unicode values (taken from xlib, copied in-tree). libxkbcommon is not an all-around solution, and requires various degrees of supporting code, depending on how much we wish to support. This commit implements the common, basic uses: - Choosing layouts, variants and options - Switching groups - Switching shift-levels - Setting modifiers Though some stuff is missing. Further information in the comments. test_input.c is updated to use the new input event interface. You can change the layouts in input.c:init_input() and see what works and what doesn't. Signed-off-by: Ran Benita <ran234@gmail.com> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>