backends/native: Use proper method for getting core idle monitor

e9fbbd5853 changed meta_backend_get_idle_monitor() to use
ClutterInputDevice pointers instead of device IDs, but did not adjust
the call in meta_backend_native_resume() which was still using 0 to get
the core idle monitor resulting in a NULL pointer dereference.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1029
This commit is contained in:
Sebastian Keller 2020-01-30 21:53:31 +01:00 committed by Georges Basile Stavracas Neto
parent 09af21cd0b
commit afd645193a

View File

@ -813,7 +813,7 @@ void meta_backend_native_resume (MetaBackendNative *native)
clutter_actor_queue_redraw (CLUTTER_ACTOR (stage));
idle_monitor = meta_backend_get_idle_monitor (backend, 0);
idle_monitor = meta_idle_monitor_get_core ();
meta_idle_monitor_reset_idletime (idle_monitor);
input_settings = meta_backend_get_input_settings (backend);