notify of fractional scale for LS-es

This commit is contained in:
vaxerski 2023-01-29 13:30:51 +00:00
parent c3adc9ec56
commit 38011c50ab

View file

@ -166,6 +166,8 @@ void Events::listener_mapLayerSurface(void* owner, void* data) {
layersurface->fadingOut = false;
g_pEventManager->postEvent(SHyprIPCEvent{"openlayer", std::string(layersurface->layerSurface->_namespace ? layersurface->layerSurface->_namespace : "")});
g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(layersurface->layerSurface->surface, PMONITOR->scale);
}
void Events::listener_unmapLayerSurface(void* owner, void* data) {
@ -313,4 +315,6 @@ void Events::listener_commitLayerSurface(void* owner, void* data) {
layersurface->layerSurface->surface->current.height};
g_pHyprRenderer->damageSurface(layersurface->layerSurface->surface, layersurface->position.x, layersurface->position.y);
g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(layersurface->layerSurface->surface, PMONITOR->scale);
}