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