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
91c679fd52
commit
9ec194fb2c
1 changed files with 1 additions and 0 deletions
|
@ -1535,6 +1535,7 @@ try_post_latest_swap (CoglOnscreen *onscreen)
|
||||||
MetaFrameNative *frame_native;
|
MetaFrameNative *frame_native;
|
||||||
|
|
||||||
if (onscreen_native->next_frame == NULL ||
|
if (onscreen_native->next_frame == NULL ||
|
||||||
|
onscreen_native->view == NULL ||
|
||||||
meta_kms_is_shutting_down (kms))
|
meta_kms_is_shutting_down (kms))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue