Julien Danjou
3eb14d7c76
luaa: move version and release to awesome module
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-28 16:21:50 +02:00
Julien Danjou
56225a39fe
array: check that we are still in the tab
...
If the array is modified while we are running the foreach() loop, the
tab of the array may be reallocated, so var can be totally out of the
memory: check for that.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-28 08:34:13 +02:00
Julien Danjou
1cbb1c0666
awful.widget.prompt: import
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 22:15:01 +02:00
Julien Danjou
c6a63d9250
awful.widget.launcher: export really new()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 21:55:41 +02:00
qsd
e0c56d36e6
wibox: fix Left and Right wibox position computing (FS#512)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 21:49:24 +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
0705fbf29d
spawn: use glib spawn module to catch error
...
This is a lot better than our previous code. We can now report execution
error to Lua directly.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 20:18:39 +02:00
Julien Danjou
57aeb2b85e
awful.widget.launcher: export new correctly
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 18:43:03 +02:00
Julien Danjou
24be8643eb
awful.widget.button: export new correctly
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 18:43:03 +02:00
Julien Danjou
512a5d86e7
awful.button: export new
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 18:43:02 +02:00
Julien Danjou
f71d8055ef
awful.key: export new()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 18:38:00 +02:00
Julien Danjou
b496122b09
awful.key: add a matching function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 18:35:04 +02:00
Julien Danjou
cd84fd5ebd
awful.util: add table.hasitem()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 18:33:15 +02:00
Julien Danjou
efad1b9843
event: matching function can get data
...
This allows us to not request keysym computation upon each match test.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 17:56:06 +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
d80c6e9c33
event: modularize Lua callback handling
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 17:46:15 +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
0cbedbbb7f
manpages: fix awesome-client to talk about D-Bus
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 15:09:42 +02:00
Julien Danjou
2dffbe9c72
dbus: fix cleanup code
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:54:09 +02:00
Julien Danjou
3831c84a84
dbus: do not exit on disconnection
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:49:58 +02:00
Julien Danjou
39c351d112
button: add modifiers field in __newindex
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 14:32:39 +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
85c5bffbcc
luaa: use only one addsl
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 13:36:26 +02:00
Julien Danjou
9ac5cea397
luaa: optimize package path computing
...
This is just for fun.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 12:22:54 +02:00
Julien Danjou
14b090e566
image: fix conversion on different endianness (FS#504)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 12:09:04 +02:00
Julien Danjou
b780be7578
build: detect endianness at compile time
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 12:06:24 +02:00
Julien Danjou
620fde1213
client: remove useless window_configure calls (FS#511)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 11:21:02 +02:00
Julien Danjou
39e907f5d8
luaa: refresh all wiboxes on font change
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-27 11:17:16 +02:00
Julien Danjou
324387bfed
util: remove useless asprintf macro
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 20:22:44 +02:00
Julien Danjou
0b61a38c7a
luaa: use buffer rather than asprintf()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 20:22:10 +02:00
Julien Danjou
6ff72afd90
buffer: add buffer_addsl() for literal strings
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 20:21:54 +02:00
Julien Danjou
42bcd7288d
button: add support for modifiers in __index
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 19:44:25 +02:00
Julien Danjou
5476665ba2
button: return 0 on index with unknown elem
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 19:43:54 +02:00
Julien Danjou
9b4cd23539
button: add missing documentation for button element
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 19:43:23 +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
566e40638b
tag: check that tag is not already attached before attaching (FS#509)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 15:13:41 +02:00
Julien Danjou
c2dc991903
Stop using variable size type, use stdtypes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 13:01:37 +02:00
Julien Danjou
503283ac28
event: add support for AnyModifier in grabbed button
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 12:47:17 +02:00
Julien Danjou
21e8c0c89e
button: add support for AnyButton
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 12:34:30 +02:00
Julien Danjou
cbcbb68f7e
xutil: remove useless conversion function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 12:34:13 +02:00
Julien Danjou
308ef7de5d
mouse: split button out
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-26 10:46:09 +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
6ee3e9d7c0
xutil: add xutil_key_mask_tostr()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-25 15:59:22 +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
Mariusz Ceier
e8de7a4605
Focus stealing prevention - should fix FS#497
...
We should prevent focus stealing, in case when there are e.g. 2 clients
on separate tags, first client has focus, and we receive FocusIn event
for second (invisible) client.
This patch adds prevention in the focus update handler. It sets focus
on previously focused client, when FocusIn event destination is
invisible(untagged) client.
This should fix FS#497.
Signed-off-by: Mariusz Ceier <mceier@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-23 23:40:46 +02:00
Nikos Ntarmos
a91e31dbe6
Fix toggletag
...
awful.client.toggletag assumes that the tags array is indexed by tag
objects. This appears to not be the case after v3.2-31-g6430738, when
client objects stopped using otables. This patch makes toggletag iterate
through the client tag array till it finds the entry to remove,
otherwise it appends the new entry at the end.
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-23 23:38:31 +02:00
koniu
241ff97666
awful.util: add missing - to show pread in luadoc
...
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-23 23:37:28 +02:00
Julien Danjou
daf7192868
property: fix bad deletion of reply (FS#502)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-21 08:46:48 +02:00