mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
Update meta connector types enum
This adds the 4 new connector types that mutter didn't know about from drm_mode.h in the kernel. Noticed because mutter kept crashing when plugging in a USB-C adapter to use an external monitor. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2577>
This commit is contained in:
parent
e2d4da8562
commit
642791673c
@ -1524,6 +1524,10 @@ get_connector_type_name (MetaConnectorType connector_type)
|
||||
case META_CONNECTOR_TYPE_eDP: return "eDP";
|
||||
case META_CONNECTOR_TYPE_VIRTUAL: return "VIRTUAL";
|
||||
case META_CONNECTOR_TYPE_DSI: return "DSI";
|
||||
case META_CONNECTOR_TYPE_DPI: return "DPI";
|
||||
case META_CONNECTOR_TYPE_WRITEBACK: return "WRITEBACK";
|
||||
case META_CONNECTOR_TYPE_SPI: return "SPI";
|
||||
case META_CONNECTOR_TYPE_USB: return "USB";
|
||||
default: g_assert_not_reached ();
|
||||
}
|
||||
return NULL;
|
||||
|
@ -60,6 +60,10 @@ typedef enum
|
||||
META_CONNECTOR_TYPE_eDP = 14,
|
||||
META_CONNECTOR_TYPE_VIRTUAL = 15,
|
||||
META_CONNECTOR_TYPE_DSI = 16,
|
||||
META_CONNECTOR_TYPE_DPI = 17,
|
||||
META_CONNECTOR_TYPE_WRITEBACK = 18,
|
||||
META_CONNECTOR_TYPE_SPI = 19,
|
||||
META_CONNECTOR_TYPE_USB = 20,
|
||||
|
||||
META_CONNECTOR_TYPE_META = 1000,
|
||||
} MetaConnectorType;
|
||||
|
Loading…
Reference in New Issue
Block a user