compositor: send preferred scale and transform events to surfaces
fixes #3635
This commit is contained in:
parent
edb26e0306
commit
59f27e7f57
6 changed files with 23 additions and 6 deletions
|
|
@ -2677,3 +2677,12 @@ void CCompositor::leaveUnsafeState() {
|
|||
|
||||
m_pUnsafeOutput = nullptr;
|
||||
}
|
||||
|
||||
void CCompositor::setPreferredScaleForSurface(wlr_surface* pSurface, double scale) {
|
||||
g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(pSurface, scale);
|
||||
wlr_surface_set_preferred_buffer_scale(pSurface, scale);
|
||||
}
|
||||
|
||||
void CCompositor::setPreferredTransformForSurface(wlr_surface* pSurface, wl_output_transform transform) {
|
||||
wlr_surface_set_preferred_buffer_transform(pSurface, transform);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue