Uli Schlachter
2b75950a8c
Add some missing class type checks
...
Some functions didn't check the class of objects they were passed but just
casted them to the type they expected. This lead to code like e.g. the following
to crash awesome:
c.titlebar = c
This adds a new function luaA_object_ref_class() which works like
luaA_object_ref(), but which also checks the class of the object.
Additionally, this function is now used in all necessary places.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:58:31 +02:00
Uli Schlachter
fa89775626
Add some missing luaA_checkudata() calls
...
luaA_object_ref_item doesn't check the type of object it returns which resulted
in stuff like this:
wibox.shape_clip = wibox
wibox.shape_bounding = wibox
imagebox.image = imagebox
textbox.bg_image = textbox
All of the above calls would result in a crash (unverified) and all of them
where fixed.
This should fix all places which use luaA_object_ref_item(). The others already
did a proper type check.
Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:58:30 +02:00
Julien Danjou
769d2899ac
awesomerc: remove move to mouse screen code on manage
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:40:28 +02:00
Sébastien Gross
4a7dba0198
tag.lua: fix new client screen
...
Prevent from blinking the first screen in multiheads by using
the mouse-focused screen tag list for a new client instead of
screen 1.
Signed-off-by: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:40:12 +02:00
Cedric GESTES
ae6d09edc1
titlebar: add support for a custom widget
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:33:14 +02:00
Cedric GESTES
1df4f1c66c
rules: if a client has not the property we search: dont match
...
Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:32:42 +02:00
Sébastien Gross
6511042f82
client: Fix get_client_in_direction
...
Both is_in_direction() and calculate_distance() expect clients
instead of geometries.
Signed-off-by: Sébastien Gross <seb•ɱɩɲʋʃ•awesome•ɑƬ•chezwam•ɖɵʈ•org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:31:28 +02:00
koniu
06f4a30d5a
luadoc: remove module name from functions in client.lua
...
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-02 12:04:43 +02:00
Julien Danjou
4643de7f30
PATCHES: add more rules
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-02 10:36:13 +02:00
Gregor Best
aca7afd519
awful.wibox: fix position for right and bottom
...
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-02 10:34:20 +02:00
koniu
1b7c822ed3
awful.prompt: word delete splits by separators
...
Instead of separating only by spaces we also look for:
{ [ ( , . : ; _ - + = @ /
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-01 14:24:13 +02:00
koniu
2b0de2f23e
awful.prompt: reset 'selectall' correctly
...
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-01 14:24:12 +02:00
koniu
4c835b5ef9
awful.prompt: add 'font' to run() args
...
Also changes prompt_text_with_cursor() to take a table instead of
list of arguments allowing to incorporate font setting and
'prettyprompt' settings into the function.
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-01 14:24:11 +02:00
Adrian C. (anrxc)
2c1c00ac42
zenburn theme: Make borders more visible
...
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 15:31:07 +02:00
Julien Danjou
128c4deca9
key: fix wrong group with mode switch (FS#537)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 15:29:16 +02:00
Julien Danjou
5daab0fb47
key: move grabbing code to window
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 13:54:36 +02:00
Julien Danjou
8969bb181a
awesomerc: fix titlebar enabled
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 13:52:15 +02:00
Adrian C. (anrxc)
fbe403df34
zenburn theme: Adapt icon size to default font height.
...
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 13:44:05 +02:00
Julien Danjou
efca7dc9e7
awesomerc: split menu creation out of wibox
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 11:52:49 +02:00
Julien Danjou
d8fae99de1
awful.titlebar: add signals for various properties (FS#609)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 11:17:40 +02:00
koniu
05e044ba8e
awesomerc: use awful.tag.viewtoggle
...
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:44:34 +02:00
koniu
8ff69e3529
awful.tag: add viewtoggle function
...
Helper function to toggle tag selection whilst updating history.
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:44:34 +02:00
koniu
529502ffbf
awful.tag: fix and improve tag history
...
This fixes a long standing tag history breakage. To store history
of tag switching we rely on a special signal "tag::history::update"
which needs to be emitted by any function which deals with tag
selection.
History is multi-level with a configurable limit:
awful.tag.history.limit = 20 (by default).
awful.tag.history.restore function gets a new argument 'idx' which can
be either 'previous' (default) which will revert to the previously
selected set of tags, or a numerical index in the tag history table.
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:44:33 +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
Brian Gianforcaro
9997402e99
Grammar and spelling fixes in man pages
...
Signed-off-by: Brian Gianforcaro <b.gianfo@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:39:25 +02:00
Brian Gianforcaro
b5cef4c1e0
Fix spelling errors in luadoc
...
Signed-off-by: Brian Gianforcaro <b.gianfo@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:39:09 +02:00
Adrian C. (anrxc)
59c4e46e3f
default theme: update examples to reflect the switch to lua
...
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:36:18 +02:00
Julien Danjou
35ff4203d8
magnifier: fix then no tiled client
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:32:53 +02:00
Adrian C. (anrxc)
133b09ccb5
zenburn theme: Initial import and integration
...
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:27:11 +02:00
Julien Danjou
17759578fa
client: merge lower code
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 17:53:48 +02:00
Julien Danjou
3a1cbd6e35
client: emit property::workarea on events if client has strut
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 17:49:28 +02:00
Julien Danjou
76fb212332
wibox: emit screen property::workarea change on {at,de}tach if wibox has strut
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 17:48:52 +02:00
Julien Danjou
0ce77459de
strut: import strut_has_value()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 17:45:18 +02:00
Julien Danjou
a55936d559
titlebar: emit signal when detaching titlebar
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 17:04:59 +02:00
Julien Danjou
95f3f8bdf9
telak: fix new proto and update description
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 17:02:16 +02:00
Julien Danjou
ee171f89db
luadoc: add selection documentation
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:42:11 +02:00
Julien Danjou
f04ba72908
awful.tag: enhance description
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:40:01 +02:00
Julien Danjou
1029a3cb69
awful.remote: enhance description
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:36:34 +02:00
Julien Danjou
d9fff4da2c
awful.placement: enhance description
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:35:51 +02:00
Julien Danjou
642a3f454b
awful.menu: enhance description
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:34:52 +02:00
Julien Danjou
c9085905e8
awful.hooks: deprecate in description
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:34:03 +02:00
Julien Danjou
91806b03ac
awful.dbus: enhance description
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:33:18 +02:00
Julien Danjou
8b1b894cdf
awful.completion: enhance description
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:32:38 +02:00
Julien Danjou
905dddafe6
awful.client: fix direction functions
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:31:16 +02:00
Julien Danjou
a14e9eb18d
awful.{button,key}: enhance documentation
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 15:26:41 +02:00
Julien Danjou
ac7ede50a2
luadoc: add timer documentation
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 12:05:38 +02:00
Julien Danjou
ce5c171b36
titlebar: emit signal when changing titlebar property
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 11:54:22 +02:00
Julien Danjou
0f8bbb775b
titlebar: fix removal of too much elements (FS#603)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-28 11:22:26 +02:00
Julien Danjou
0d03ea88d5
luaa: emit deprecation signal
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 18:05:44 +02:00
Julien Danjou
b83766b4c9
luaa: emit signal on runtime error
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 17:55:47 +02:00