toytoolkit: avoid unnecessary redraws when focus changes
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 10 Feb 2014 15:52:32 +0000 (16:52 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 18 Feb 2014 22:05:49 +0000 (14:05 -0800)
commite818d59e8827933511a0611aff0e9605ecacfeeb
tree14dffa1e298a09ffe8e50ed13a18c7ccf62c6fb2
parentf942b73a1c25260b5903efc573b4d7bbb1c48bcc
toytoolkit: avoid unnecessary redraws when focus changes

Clients that need to be redrawn when the focus changes do that by
listening to focus_changed and scheduling a redraw.

This was causing unnecessary redraws in the clients, as could be
easily seen by changing focus on weston-flower.

Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
clients/window.c