mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 20:01:00 -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
28b2added7
commit
2ec91abf38
@ -260,6 +260,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