summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-config.c
diff options
context:
space:
mode:
authorClement Lefebvre <[email protected]>2015-09-04 12:35:56 +0100
committerClement Lefebvre <[email protected]>2015-09-04 12:35:56 +0100
commit6181c4357bf1882e3833feffb6160fd535a26df3 (patch)
tree3c7d6debb18e2dd38b9531b97f5f81c12d3e45c7 /libmate-desktop/mate-rr-config.c
parent4b9d81364c6fa61373cc03b554c18db5277c070e (diff)
parent5cda9e602cfa18739423a3ede10eaee9ec36b87f (diff)
downloadmate-desktop-6181c4357bf1882e3833feffb6160fd535a26df3.tar.bz2
mate-desktop-6181c4357bf1882e3833feffb6160fd535a26df3.tar.xz
Merge pull request #196 from monsta/randr
xrandr fixes and cleanup
Diffstat (limited to 'libmate-desktop/mate-rr-config.c')
-rw-r--r--libmate-desktop/mate-rr-config.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/libmate-desktop/mate-rr-config.c b/libmate-desktop/mate-rr-config.c
index 5702b11..dfff1b6 100644
--- a/libmate-desktop/mate-rr-config.c
+++ b/libmate-desktop/mate-rr-config.c
@@ -1171,19 +1171,6 @@ mate_rr_config_sanitize (MateRRConfig *config)
}
}
-static gboolean
-output_info_is_laptop (MateRROutputInfo *info)
-{
- if (info->priv->name
- && (strstr (info->priv->name, "lvds") || /* Most drivers use an "LVDS" prefix... */
- strstr (info->priv->name, "LVDS") ||
- strstr (info->priv->name, "Lvds") ||
- strstr (info->priv->name, "LCD"))) /* ... but fglrx uses "LCD" in some versions. Shoot me now, kthxbye. */
- return TRUE;
-
- return FALSE;
-}
-
gboolean
mate_rr_config_ensure_primary (MateRRConfig *configuration)
{
@@ -1223,9 +1210,7 @@ mate_rr_config_ensure_primary (MateRRConfig *configuration)
top_left = info;
}
if (laptop == NULL
- && output_info_is_laptop (info)) {
- /* shame we can't find the connector type
- as with gnome_rr_output_is_laptop */
+ && _mate_rr_output_name_is_laptop (info->priv->name)) {
laptop = info;
}
}