diff --git a/src/backends/native/meta-kms-connector.c b/src/backends/native/meta-kms-connector.c index 86792d938..1ea450284 100644 --- a/src/backends/native/meta-kms-connector.c +++ b/src/backends/native/meta-kms-connector.c @@ -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);