From 6d11d35f86649511e6a5b4b8ab6b6ae13cb4d556 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Thu, 2 Aug 2018 15:34:24 +0900 Subject: Fix source rectangle changes every state change Window Manager changes source rectangle size every state change. This patch changes it to set source rectangle first when the surface is created. Related commit: https://gerrit.automotivelinux.org/gerrit/#/c/15595/ Bug-AGL: SPEC-1584 Change-Id: Ia7429956053cfa18e6e82060f84f3b6fe755c0b1 Signed-off-by: Kazumasa Mitsunari --- src/controller_hooks.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/controller_hooks.hpp') diff --git a/src/controller_hooks.hpp b/src/controller_hooks.hpp index f259089..dd0a3aa 100644 --- a/src/controller_hooks.hpp +++ b/src/controller_hooks.hpp @@ -28,10 +28,9 @@ class WindowManager; struct controller_hooks { - WindowManager *app; + WindowManager *wmgr; void surface_created(uint32_t surface_id); - void surface_removed(uint32_t surface_id); void surface_visibility(uint32_t surface_id, uint32_t v); void surface_destination_rectangle(uint32_t surface_id, uint32_t x, uint32_t y, uint32_t w, uint32_t h); -- cgit 1.2.3-korg