awesome/objects
Uli Schlachter 2729357ad2 Fix possible crash on shutdown (FS#904)
Open some windows, select a layout which does something (=not floating) and
restart awesome. It's likely that it will crash during the shutdown.

The reason is that awesome cleans up various state before going down. This is
mostly all the lua state. However, drawin_wipe, which is called for cleaning up
after a drawin, dared to emit a sigal which then let various lua code run which
had access to objects which were already destroyed.

Various bad things can happen this way, in this situation it was a crash when an
already-destroyed client was resized.

The fix is to move the signal out of drawin_wipe. It doesn't belong there
anyway. Instead, property::workarea should be emitted when the drawin's visible
property changes as this is when the workarea changes, too (screen_area_get()
only looks at visible drawins).

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-05-14 16:54:33 +02:00
..
button.c luaclass properties: Use C strings 2010-09-01 15:41:41 +02:00
button.h fix tag header and order build 2010-05-28 13:28:25 +02:00
client.c Update the code following release of xcb-util 0.3.8. 2011-05-10 18:27:39 +02:00
client.h Update the code following release of xcb-util 0.3.8. 2011-05-10 18:27:39 +02:00
drawin.c Fix possible crash on shutdown (FS#904) 2011-05-14 16:54:33 +02:00
drawin.h Drawin: Add bg_color property 2010-12-12 21:14:04 +01:00
key.c common/xutil.c: Stop using a_tokenize 2010-09-02 19:22:08 +02:00
key.h fix tag header and order build 2010-05-28 13:28:25 +02:00
tag.c Stop doing per-screen banning 2011-03-27 20:01:05 +02:00
tag.h fix tag header and order build 2010-05-28 13:28:25 +02:00
timer.c timer: add again method 2010-12-17 15:07:40 +01:00
timer.h fix tag header and order build 2010-05-28 13:28:25 +02:00
window.c drawin: Remove screen property 2011-03-27 16:21:49 +02:00
window.h drawin: Remove screen property 2011-03-27 16:21:49 +02:00