1
0
Fork 0

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
This commit is contained in:
Daniel van Vugt 2023-06-22 15:19:53 +08:00
parent 87947f7fc5
commit 0cb8c3783f

View file

@ -1525,6 +1525,7 @@ try_post_latest_swap (CoglOnscreen *onscreen)
MetaFrameNative *frame_native;
if (onscreen_native->next_post.frame == NULL ||
onscreen_native->view == NULL ||
meta_kms_is_shutting_down (kms))
return;