Commit Graph

43 Commits

Author SHA1 Message Date
Julien Danjou 65260f5772 key: remove useless arguments len
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-29 17:48:26 +02:00
Julien Danjou 047d04d438 luaobject: import __tostring as object meta function
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-29 16:09:14 +02:00
Julien Danjou c1d99f0960 luaobject: emit signal on new object
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-29 15:48:18 +02:00
Julien Danjou dea2b6303a luaobject: import signals meta methods in objects
Signed-off-by: Julien Danjou <julien@danjou.info>

Conflicts:
2009-07-29 15:48:18 +02:00
Julien Danjou d7454f4307 key, button: use as simple table
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-28 10:44:54 +02:00
Julien Danjou f6d2aa3064 button, key: grab all keys by default, and check for match.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-28 10:42:31 +02:00
Julien Danjou 339fb53d56 luaobject: add and use item system
Now, each object can store items.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-28 10:29:30 +02:00
Brian Gianforcaro 404ec8eb24 Fix doxygen generation warnings.
Signed-off-by: Brian Gianforcaro <b.gianfo@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-07-27 11:18:43 +02:00
Julien Danjou 39efa6eb18 client: fix key array leak
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-22 17:18:06 +02:00
Julien Danjou 5eadbc0116 key: change setmodifiers to tomodifiers
This is more Lua compliant.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-17 17:05:47 +02:00
Julien Danjou a8115bd45e luaobject: ref take index number as argument
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-16 17:15:20 +02:00
Julien Danjou c95ba76d2f luaobject: use object header and standard gc everywhere
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-06-16 16:26:45 +02:00
Julien Danjou 43902aed69 luaa: fix memory leak in __gc
We need to wipe the ref_array.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-05-08 09:53:20 +02:00
Julien Danjou c378343a64 key: add .keysym to return keysym name
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-30 00:11:38 +02:00
Julien Danjou f05c1bc86c key: prefix XF86 keys names
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-29 11:27:07 +02:00
Julien Danjou 7d59a773a7 key: add support for XF86 keysyms
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-29 11:24:06 +02:00
Julien Danjou 2e8557f04e key: add missing XKB entries
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-29 11:05:58 +02:00
Julien Danjou 2c9a19bafb key: stop using XKeysymToString()
It does not return the same thing.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-29 10:53:50 +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 600299a19f key: restore proper support of keysym resolution
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-28 18:17:16 +02:00
Julien Danjou ffb5e46492 key: use right value for no symbol
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-28 17:35:12 +02:00
Julien Danjou e2b4fae3e2 key: replace key_find() by generic callback
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 17:52:36 +02:00
Julien Danjou e9794c7cbd key: stop using keybinding_t and sorted array
That is necessary because key_find() assume we always get one and only
one keybinding for an event, which is wrong, since we can have several.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 16:10:58 +02:00
Julien Danjou 061152b874 key: add __newindex metamethod
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:31:57 +02:00
Julien Danjou d571edf1ac key: check that modifier table is a table
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:13:54 +02:00
Julien Danjou 6d8ae55850 key: modularize modifiers set
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:12:24 +02:00
Julien Danjou e071514704 key: split luaA_pushmodifiers() out of index
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 19:41:53 +02:00
Julien Danjou c8b758ac48 key: add __index metamethod
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-25 16:00:08 +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 f168bbdfa4 key: add support for modifier mask Any
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 14:43:58 +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
Julien Danjou cda33ca3e6 key: cleanup modifiers system
We stop retrieving useless key, since we have constant.
We also grab correctly all keycode for a keysym.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-15 12:01:54 +02:00
Julien Danjou 5f6aed4e3d key: use new Lua object system
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 67c96cbebc key: luaA_key_new is static
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-11 11:59:10 +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 b14036171d key: stop using otable
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-14 13:38:53 +01:00
Julien Danjou 5154cfc19f remove deprecated functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
Julien Danjou 7cd50a3d81 key: remove dead code
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-26 17:57:27 +01:00
Julien Danjou d9c868b627 client: implements per-client key bindings
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-05 16:59:20 +01:00
Julien Danjou cdbbe39011 key: add fallback when second column unavailable
This allows to translate certain combinaison like Shift+Insert.
Insert exists, but Shift+Insert converts to no symbol, resulting in
XCB_NONE returned.

We return either the k0 alternative, without shift, so we got at least
the 'simple' keysym.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-04 17:38:40 +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