connector/kms: Add missing else statement

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1715>
This commit is contained in:
Dor Askayo 2021-02-05 19:53:30 +02:00 committed by Marge Bot
parent 7a75c7ea1f
commit 2c0bd98f21

View File

@ -188,8 +188,8 @@ state_set_properties (MetaKmsConnectorState *state,
else if ((prop->flags & DRM_MODE_PROP_ENUM) &&
strcmp (prop->name, "panel orientation") == 0)
set_panel_orientation (state, prop, drm_connector->prop_values[i]);
if ((prop->flags & DRM_MODE_PROP_RANGE) &&
strcmp (prop->name, "non-desktop") == 0)
else if ((prop->flags & DRM_MODE_PROP_RANGE) &&
strcmp (prop->name, "non-desktop") == 0)
state->non_desktop = drm_connector->prop_values[i];
drmModeFreeProperty (prop);