mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[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:
parent
14839dc54e
commit
8d78a5aa95
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user