diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-01-20 19:44:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-20 19:44:30 +0100 |
| commit | 60b880d9312574c3115d973fd532f2e15d1eafff (patch) | |
| tree | b88cad7335c97c876f069f9d378589210332a95f /src/events/Windows.cpp | |
| parent | cee7bc6e742aa02675701f772f5e7ebfb56f11ab (diff) | |
wp-fractional-scaling-v1 impl (#1373)
* Initial fractional scaling impl
* apply UV after geom calcs
* fix scaling -> scale
* meson: add fractional scale proto
Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 68ce4664..46ea5abf 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -564,6 +564,8 @@ void Events::listener_mapWindow(void* owner, void* data) { // recalc the values for this window g_pCompositor->updateWindowAnimatedDecorationValues(PWINDOW); + + g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(g_pXWaylandManager->getWindowSurface(PWINDOW), PMONITOR->scale); } void Events::listener_unmapWindow(void* owner, void* data) { |
