Created
February 7, 2021 10:49
-
-
Save simonswine/7199123378845bb8b17b09bf35c212f7 to your computer and use it in GitHub Desktop.
Mutter patch to not compare connectors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 7a8092b5a262095f02d97c62d56a82d856b66500 Mon Sep 17 00:00:00 2001 | |
From: Christian Simon <simon@swine.de> | |
Date: Sun, 7 Feb 2021 10:42:48 +0000 | |
Subject: [PATCH] hack: Do not compare connector | |
Necessary for my Thunderbolt adapter on X1 Carbon | |
--- | |
src/backends/meta-monitor.c | 7 +------ | |
1 file changed, 1 insertion(+), 6 deletions(-) | |
diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c | |
index 07857e00b..7a77ac616 100644 | |
--- a/src/backends/meta-monitor.c | |
+++ b/src/backends/meta-monitor.c | |
@@ -131,8 +131,7 @@ gboolean | |
meta_monitor_spec_equals (MetaMonitorSpec *monitor_spec, | |
MetaMonitorSpec *other_monitor_spec) | |
{ | |
- return (g_str_equal (monitor_spec->connector, other_monitor_spec->connector) && | |
- g_str_equal (monitor_spec->vendor, other_monitor_spec->vendor) && | |
+ return (g_str_equal (monitor_spec->vendor, other_monitor_spec->vendor) && | |
g_str_equal (monitor_spec->product, other_monitor_spec->product) && | |
g_str_equal (monitor_spec->serial, other_monitor_spec->serial)); | |
} | |
@@ -143,10 +142,6 @@ meta_monitor_spec_compare (MetaMonitorSpec *monitor_spec_a, | |
{ | |
int ret; | |
- ret = strcmp (monitor_spec_a->connector, monitor_spec_b->connector); | |
- if (ret != 0) | |
- return ret; | |
- | |
ret = strcmp (monitor_spec_a->vendor, monitor_spec_b->vendor); | |
if (ret != 0) | |
return ret; | |
-- | |
2.29.2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment