[commit] wayland: invalidate window on scale changes

This makes it not require new frames for new scale to be properly applied.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-08-03 00:57:04 +10:00
1 parent 14839dc54e
commit 8d78a5aa95
2 files changed
+4

No files matched your search

+2
View File
@@ -119,6 +119,8 @@ void waylandEGLSwapBuffers(EGLDisplay display, EGLSurface surface, const struct
app_handleResizeEvent(wlWm.width, wlWm.height, wl_fixed_to_double(wlWm.scale),
(struct Border) {0, 0, 0, 0});
app_invalidateWindow();
waylandStopWaitFrame();
wlWm.needsResize = false;
}
+2
View File
@@ -48,6 +48,8 @@ void waylandWindowUpdateScale(void)
wlWm.scale = maxScale;
wlWm.fractionalScale = wl_fixed_from_int(wl_fixed_to_int(maxScale)) != maxScale;
wlWm.needsResize = true;
app_invalidateWindow();
waylandStopWaitFrame();
}
}