Sébastien Luttringer
af1dcc431c
Get keygrabber running state
...
Add a function keygrabber.isrunning() which return a boolean state of
keygrabber
Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2012-06-06 17:29:15 +02:00
Corey Thompson
7298b3835d
Remove "encoding=utf-8" from Vim modelines
...
Signed-off-by: Corey Thompson <cmtptr@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2012-03-26 12:19:57 +02:00
Julien Danjou
5b718cdacb
structs: rename to globalconf
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-07 17:23:01 +02:00
Brian Gianforcaro
3145e3145e
Grammar/spelling corrections in comments and docs.
...
Signed-off-by: Brian Gianforcaro <b.gianfo@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:39:36 +02:00
Julien Danjou
88a6f06b21
add missing vim modelines
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 16:44:30 +02:00
Julien Danjou
a916f2cd55
image: port to new class system
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 15:30:47 +02:00
Julien Danjou
e44d62cb09
key: looking up for a key use a keysym
...
We do not resolve keycode anymore.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-29 10:53:50 +02:00
Julien Danjou
bea4aa7f60
key: move keysym resolution to key
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-29 10:53:50 +02:00
Julien Danjou
ba48d8784d
keygrabber: change key_press_lookup_string proto
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-29 10:53:50 +02:00
Julien Danjou
66767605ee
Revert "keygrabber: use XStringToKeysym()"
...
This reverts commit 6ca27c7c4c
.
2009-04-28 19:47:39 +02:00
Julien Danjou
6ca27c7c4c
keygrabber: use XStringToKeysym()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-28 17:56:57 +02:00
Julien Danjou
e61ab85f5d
keygrabber: use luaA_pushmodifiers()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 21:04:15 +02:00
Julien Danjou
dc29720ef7
Replace lua_newtable() with lua_createtable()
...
Lua can preallocate space in table for array or non-array elements type.
This should improve performance when setting table, so when we can we
use lua_createtable() since this is just a gain.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-25 15:04:27 +02:00
Julien Danjou
f473a107b0
cleanup #includes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-17 16:52:25 +02:00
Julien Danjou
1a18088da5
key: stop ignoring arbitrary modifier
...
Before, we used to ignore Mod2 and Lock.
This is now configurable.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 12:01:55 +02:00
Uli Schlachter
95457c5ab7
Move the definition of globalconf into a header file
...
Pretty much every single source file needs this struct, so it makes sense to
define it in a common header instead of in every single .c file.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-10 16:32:42 +02:00
Alex Cornejo
106e6ed5ab
Styling inconsistencies
...
Cheers,
Alex
From b5816ec55073507d4527ad3a77eae1878adb30d3 Mon Sep 17 00:00:00 2001
From: Alex Cornejo <acornejo@gmail.com>
Date: Sun, 29 Mar 2009 14:24:27 -0400
Subject: [PATCH] Fixed some styling issues.
Noticed in the latest pull that a commit introduced a lot of styling
inconsistencies, decided to remove those and others found by a simple
grep.
Signed-off-by: Alex Cornejo <acornejo@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-30 12:53:12 +02:00
Julien Danjou
8edd049e4d
keygrabber: report modifier key press
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-05 11:22:04 +01:00
Julien Danjou
c8c2c75472
keygrabber: add a bunch of new key
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-04 17:44:19 +01:00
Julien Danjou
53f58aa1a6
keybinding: move to key
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-18 11:33:52 +01:00
Julien Danjou
8193a9cf0c
keygrabber: identify release events
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-16 15:02:54 +01:00
Julien Danjou
9abf89da2a
keygrabber: remove duplicate case (FS#386)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-24 11:24:19 +01:00
Julien Danjou
ce99ab2a3a
keygrabber: add stop() method
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-10 17:31:18 +01:00
Julien Danjou
6a67910854
keygrabber: add support for XKB_KEYS
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-26 09:46:34 +02:00
Julien Danjou
6ac0c4130c
image: merge draw_image_t and image_t
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-22 11:11:55 +02:00
Julien Danjou
01f37e1edc
keygrabber: push an hash table instead of indexed table
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-22 11:11:54 +02:00
Julien Danjou
3104969d03
keygrabber: include header file for key_getkeysym()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-13 12:31:42 +02:00
Julien Danjou
530f27e4a1
keybinding: honor modifier state correctly (FS#264)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-08-13 10:30:24 +02:00
Arnaud Fontaine
b655f6348c
xutil: rename xutil functions according to the rest of code.
2008-08-11 18:05:35 +02:00
Pierre Habouzit
f96c5c6259
Simplify keygrabber.
...
* Use __utf8_mark to lookup the final patch for utf8 codepoints.
* Use __utf32_clz_to_len to compute the number of octets needed to encode
a given Unicode codepoint in utf8, rather than inefficient ifs.
* Use static buffers (libc provides MB_LEN_MAX for the matter, and we know
the special keys names won't be longer than 32, so avoid silly p_new's).
* Rework APIs to work with those static buffers, and return a boolean to
tell if conversion worked.
* Factorize ksym XK_* to string conversion using ad-hoc macros.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-30 00:47:11 +02:00
Pierre Habouzit
cde80ab49a
Move CLEANMASK to xutil.h, remove useless #Includes
...
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
2008-06-26 22:47:56 +02:00
Julien Danjou
013b2afe62
remove useless #include
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-26 18:10:45 +02:00
Julien Danjou
46ead6ea3f
comments fixing
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-20 08:38:00 +02:00
Arnaud Fontaine
b9e1ec69d0
Replace xcb_aux_get_screen() by a safer function
2008-06-17 17:14:00 +02:00
Julien Danjou
6cd6e18e29
[keygrabber] Add keys between XK_Home and XK_Begin
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-10 22:57:26 +02:00
Julien Danjou
7d79509df9
[keygrabber] Fix key mapping
...
- Use Mod5 to enter group 2 and 3
- Do not call the function is key not recognized
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-10 22:37:45 +02:00
Julien Danjou
13a96b6edd
[keygrab] Add keygrabbing infrastructure
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-06-10 17:22:36 +02:00