mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
backend/native: Gracefully handle failing to create monitor manager
We tried to start listening to a signal even if it didn't construct properly. Stop doing that. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1689>
This commit is contained in:
parent
f75e9032c1
commit
35ecc6ba7c
@ -204,6 +204,9 @@ meta_backend_native_create_monitor_manager (MetaBackend *backend,
|
||||
manager = g_initable_new (META_TYPE_MONITOR_MANAGER_KMS, NULL, error,
|
||||
"backend", backend,
|
||||
NULL);
|
||||
if (!manager)
|
||||
return NULL;
|
||||
|
||||
g_signal_connect_swapped (manager, "monitors-changed-internal",
|
||||
G_CALLBACK (update_viewports), backend);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user