Commit 8671cf7c authored by Guido Gunther's avatar Guido Gunther
Browse files

Revert "monitor-manager: Flip transform"

This reverts commit 75cad1aa.

There's no need to flip the transform with recent wlroots/phoc, we
end up flipping the upside down in landscape mode otherwise when
e.g. changing scale.
parent 5861153b
......@@ -162,34 +162,6 @@ phosh_monitor_manager_get_head_from_monitor (PhoshMonitorManager *self, PhoshMon
return NULL;
}
static gint32
phosh_monitor_manager_flip_transform (PhoshMonitorTransform transform)
{
/* Wayland rotation is opposite from DBus */
switch (transform) {
case PHOSH_MONITOR_TRANSFORM_90:
return WL_OUTPUT_TRANSFORM_270;
break;
case PHOSH_MONITOR_TRANSFORM_270:
return WL_OUTPUT_TRANSFORM_90;
break;
case PHOSH_MONITOR_TRANSFORM_FLIPPED_90:
return WL_OUTPUT_TRANSFORM_FLIPPED_270;
break;
case PHOSH_MONITOR_TRANSFORM_FLIPPED_270:
return WL_OUTPUT_TRANSFORM_FLIPPED_90;
break;
case PHOSH_MONITOR_TRANSFORM_NORMAL:
case PHOSH_MONITOR_TRANSFORM_180:
case PHOSH_MONITOR_TRANSFORM_FLIPPED:
case PHOSH_MONITOR_TRANSFORM_FLIPPED_180:
default:
/* Nothing to be done */
return transform;
}
}
/*
* DBus Interface
*/
......@@ -801,7 +773,7 @@ config_head_config_from_logical_monitor_variant (PhoshMonitorManager *self,
head->pending.scale = scale;
head->pending.x = x;
head->pending.y = y;
head->pending.transform = phosh_monitor_manager_flip_transform (transform);
head->pending.transform = transform;
head->pending.enabled = TRUE;
head->pending.seen = TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment