mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
monitor-manager: Fix crash when UPower is not available
Don't access the upower client if it doesn't exist https://bugzilla.gnome.org/show_bug.cgi?id=780407
This commit is contained in:
parent
68dacb531b
commit
f5f0ff0a2f
@ -375,6 +375,9 @@ lid_is_closed_changed (UpClient *client,
|
||||
static gboolean
|
||||
meta_monitor_manager_real_is_lid_closed (MetaMonitorManager *manager)
|
||||
{
|
||||
if (!manager->up_client)
|
||||
return FALSE;
|
||||
|
||||
return up_client_get_lid_is_closed (manager->up_client);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user