monitor-config: Use existing key_is_laptop
We already have this code elsewhere.
This commit is contained in:
parent
d514e8ab41
commit
9d2cd8ff87
@ -956,8 +956,7 @@ make_laptop_lid_config (MetaConfiguration *reference)
|
|||||||
new->keys[i].product = g_strdup (current_key->product);
|
new->keys[i].product = g_strdup (current_key->product);
|
||||||
new->keys[i].serial = g_strdup (current_key->serial);
|
new->keys[i].serial = g_strdup (current_key->serial);
|
||||||
|
|
||||||
if (g_str_has_prefix (current_key->connector, "LVDS") ||
|
if (key_is_laptop (current_key))
|
||||||
g_str_has_prefix (current_key->connector, "eDP"))
|
|
||||||
{
|
{
|
||||||
new->outputs[i].enabled = FALSE;
|
new->outputs[i].enabled = FALSE;
|
||||||
x_after = current_output->rect.x;
|
x_after = current_output->rect.x;
|
||||||
|
Loading…
Reference in New Issue
Block a user