Drawable: Improve signal behavior
commit983001613a46b760c15dd48aa64a87b020fda615
authorUli Schlachter <psychon@znc.in>
Wed, 20 Feb 2013 13:09:19 +0000 (20 14:09 +0100)
committerUli Schlachter <psychon@znc.in>
Wed, 20 Feb 2013 13:09:19 +0000 (20 14:09 +0100)
tree1124833fc1774ee65019eed850c10d4ea6975777
parent470142acc34c5ec0f1e0a52fa6502b29d05ce024
Drawable: Improve signal behavior

When property::surface is emitted, the drawable didn't know its geometry yet,
which had weird side effects. Fix this by changing the C API a little. The
function drawable_set_surface() now no longer allows a NULL surface as its
argument.

The required changes for the titlebar code also means that we no longer throw
away the double-buffering surface when a client is moved.

Signed-off-by: Uli Schlachter <psychon@znc.in>
objects/client.c
objects/drawable.c
objects/drawable.h
objects/drawin.c