monitor-config: Use existing key_is_laptop

We already have this code elsewhere.
This commit is contained in:
Jasper St. Pierre 2014-12-29 16:41:13 -08:00
parent d514e8ab41
commit 9d2cd8ff87

View File

@ -956,8 +956,7 @@ make_laptop_lid_config (MetaConfiguration *reference)
new->keys[i].product = g_strdup (current_key->product);
new->keys[i].serial = g_strdup (current_key->serial);
if (g_str_has_prefix (current_key->connector, "LVDS") ||
g_str_has_prefix (current_key->connector, "eDP"))
if (key_is_laptop (current_key))
{
new->outputs[i].enabled = FALSE;
x_after = current_output->rect.x;