onscreen/native: Avoid callbacks on "detached" onscreens
Detached onscreens have no valid view so avoid servicing callbacks on
them during/after sleep mode. As previously mentioned in 45bda2d969
.
Closes: https://launchpad.net/bugs/2020049
Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
parent
35fbafab53
commit
5901e0d170
1 changed files with 1 additions and 0 deletions
|
@ -1596,6 +1596,7 @@ try_post_latest_swap (CoglOnscreen *onscreen)
|
|||
COGL_TRACE_SCOPED_ANCHOR (MetaRendererNativePostKmsUpdate);
|
||||
|
||||
if (onscreen_native->next_frame == NULL ||
|
||||
onscreen_native->view == NULL ||
|
||||
meta_kms_is_shutting_down (kms))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue