From d332ee3fcd4885d26b298a0cf682731b6dc763ed Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Mon, 5 Mar 2018 15:49:46 +0100 Subject: [PATCH] nit_fader: update view visibility for late clients The visibility of the client's view is re-evaluated at each animation step. However, when the client appears long after the initial fade-in/out animation is completed, the initial visibility state remaines unchanged. This happens when booting the Sculpt scenario in Qemu where the the nit_fb instances of the leitzentrale could not be started in time. This patch fixes the issue by re-evaluating the view visibility also at the view-creation time. --- repos/gems/src/server/nit_fader/main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/repos/gems/src/server/nit_fader/main.cc b/repos/gems/src/server/nit_fader/main.cc index 9e62e2da4a..a983632c86 100644 --- a/repos/gems/src/server/nit_fader/main.cc +++ b/repos/gems/src/server/nit_fader/main.cc @@ -348,6 +348,7 @@ class Nit_fader::Nitpicker_session_component View_handle create_view(View_handle parent) override { _view_handle = _nitpicker.create_view(parent); + _update_view_visibility(); return _view_handle; }