-
Notifications
You must be signed in to change notification settings - Fork 342
DRM "panel orientation" property support #1581
Comments
Would the idea to just expose the property so the compositor can make use of it or would we actually want to honor that (and hence rotate e.g. touch input coordinates accordingly too)? |
What do you mean? The DRM backend can't do any magical input coordinate transformation, because it doesn't handle input at all. Rotating touch input will work out-of-the-box with We could expose the DRM prop in several ways:
Do you have other ideas? |
I think i didn't phrase it very well let me try to explain I'm wondering whether wlroots should apply the necessary transform to honor If we have wlroots apply the transform upfront the nice thing is that So i'd go with hint that indicates to the compositor that wlroots adds a transform to every transform set on the output to compensate for |
I think we want to tell clients that the panel is mounted upside-down, because then clients could set a transform on their buffers and make it so the compositor doesn't need to rotate the buffers. That's the only use-case for |
That's a good point so we should set that as you suggest. i was thinking about |
Another benefit of exposing the "real" transform is that screencopy/export-dmabuf clients use
Indeed, that makes sense to me.
With wlr-output-management the compositor is in full control of the configuration sent to clients and can decide to implicitly apply the panel orientation. I guess a compositor will want to implicitly apply the panel orientation if it has a settings file too. |
Expose the panel orientation with wlr_drm_connector_get_panel_orientation. Leave it to the compositor to consume this information and configure the output accordingly. Closes: swaywm#1581
Expose the panel orientation with wlr_drm_connector_get_panel_orientation. Leave it to the compositor to consume this information and configure the output accordingly. Closes: swaywm#1581
Expose the panel orientation with wlr_drm_connector_get_panel_orientation. Leave it to the compositor to consume this information and configure the output accordingly. Closes: #1581
DRM exposes a "panel orientation" property to suggest an output to have a particular transform. Similarily, there are "suggested X" and "suggested Y" properties.
The text was updated successfully, but these errors were encountered: