[mutter] monitor-config: Use existing key_is_laptop
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-config: Use existing key_is_laptop
- Date: Tue, 30 Dec 2014 00:49:28 +0000 (UTC)
commit 9d2cd8ff877b0f8828841d41cc12aa8ce0919084
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Dec 29 16:41:13 2014 -0800
monitor-config: Use existing key_is_laptop
We already have this code elsewhere.
src/backends/meta-monitor-config.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/meta-monitor-config.c b/src/backends/meta-monitor-config.c
index 5141bd6..0b19559 100644
--- a/src/backends/meta-monitor-config.c
+++ b/src/backends/meta-monitor-config.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]