mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 22:58:11 +02:00
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>
This commit is contained in:
parent
f942b73a1c
commit
e818d59e88
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue