awesome/common
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
..
array.h array: add bisect-style insert and lookup 2009-06-16 17:10:55 +02:00
atoms.c Grammar/spelling corrections in comments and docs. 2009-08-31 10:39:36 +02:00
atoms.h atoms: autogenerate atom list 2008-06-30 20:05:53 +02:00
atoms.list client: add support for _NET_STARTUP_ID 2009-04-14 12:47:10 +02:00
backtrace.c awesome: dump backtrace on SEGV/ABRT 2009-06-05 15:00:37 +02:00
backtrace.h awesome: dump backtrace on SEGV/ABRT 2009-06-05 15:00:37 +02:00
buffer.c buffer: remove useless buffer_add_xmlescaped() 2009-04-08 18:08:44 +02:00
buffer.h Grammar/spelling corrections in comments and docs. 2009-08-31 10:39:36 +02:00
luaclass.c luaclass: add handling of {new,}index of missing properties (FS#584) 2009-08-21 15:30:48 +02:00
luaclass.h luaclass: add handling of {new,}index of missing properties (FS#584) 2009-08-21 15:30:48 +02:00
lualib.h lualib: allow to replace error handling function 2009-08-27 17:53:51 +02:00
luaobject.c Grammar/spelling corrections in comments and docs. 2009-08-31 10:39:36 +02:00
luaobject.h Add some missing class type checks 2009-09-04 13:58:31 +02:00
signal.h signal: fix memory leak, wipe signal_t 2009-08-21 23:11:44 +02:00
tokenize.gperf textbox: add valign 2009-08-25 17:56:48 +02:00
util.c build: do not use common as include dir 2009-08-03 17:42:51 +02:00
util.h Grammar/spelling corrections in comments and docs. 2009-08-31 10:39:36 +02:00
version.c version: remove product name 2009-04-08 18:53:53 +02:00
version.h version: remove product name 2009-04-08 18:53:53 +02:00
xcursor.c xcursor: add new cursor infra 2008-12-12 16:51:41 +01:00
xcursor.h xcursor: add new cursor infra 2008-12-12 16:51:41 +01:00
xembed.c xembed: store windows in an array 2008-12-14 10:28:22 +01:00
xembed.h xembed: store windows in an array 2008-12-14 10:28:22 +01:00
xutil.c xutil: remove xutil_text_prop_get 2009-08-24 10:35:13 +02:00
xutil.h xutil: fix possible overflow 2009-08-24 12:04:04 +02:00