From e818d59e8827933511a0611aff0e9605ecacfeeb Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 10 Feb 2014 16:52:32 +0100 Subject: [PATCH] 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 --- clients/window.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/clients/window.c b/clients/window.c index 400b16c1..96b49a4c 100644 --- a/clients/window.c +++ b/clients/window.c @@ -3857,7 +3857,6 @@ handle_surface_focused_set(void *data, struct xdg_surface *xdg_surface) { struct window *window = data; window->focused = 1; - window_schedule_redraw(window); } static void @@ -3865,7 +3864,6 @@ handle_surface_focused_unset(void *data, struct xdg_surface *xdg_surface) { struct window *window = data; window->focused = 0; - window_schedule_redraw(window); } static void