Add titlebars on the C side
commit41ef107b888e660cc9e4b112bbc3a88621506db0
authorUli Schlachter <psychon@znc.in>
Sun, 14 Oct 2012 15:20:24 +0000 (14 17:20 +0200)
committerUli Schlachter <psychon@znc.in>
Sun, 14 Oct 2012 15:30:59 +0000 (14 17:30 +0200)
treee6d6199ac36ea7a53bd73d0cacbcc45de5c72a0a
parentf0512eeaabf055277c528459ea4b4a9dfc3f32ec
Add titlebars on the C side

This commit makes it possible to add titlebars to a client. These titlebars are
drawables.

The drawin's input handling is moved to the drawable. This allows it to use the
same code for drawin and titlebar input handling, although there are lots of
differences between the two on the C side.

On the lua side, a new wibox.drawable module is created which handles all the
drawable-specific magic and which can also be used for titlebars.

Signed-off-by: Uli Schlachter <psychon@znc.in>
event.c
lib/wibox/drawable.lua.in [new file with mode: 0644]
lib/wibox/init.lua.in
objects/client.c
objects/client.h
objects/drawin.c
objects/window.c