mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 12:14:16 +00:00
[client] app: allow selective full invalidation
Overlays only need to trigger a new frame if they have changed and not full window invalidation, this change allows for this.
This commit is contained in:
@@ -123,7 +123,7 @@ 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();
|
||||
app_invalidateWindow(true);
|
||||
waylandStopWaitFrame();
|
||||
wlWm.needsResize = false;
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ static void xdgSurfaceConfigure(void * data, struct xdg_surface * xdgSurface,
|
||||
{
|
||||
wlWm.needsResize = true;
|
||||
wlWm.resizeSerial = serial;
|
||||
app_invalidateWindow();
|
||||
app_invalidateWindow(true);
|
||||
waylandStopWaitFrame();
|
||||
}
|
||||
else
|
||||
|
@@ -48,7 +48,7 @@ void waylandWindowUpdateScale(void)
|
||||
wlWm.scale = maxScale;
|
||||
wlWm.fractionalScale = wl_fixed_from_int(wl_fixed_to_int(maxScale)) != maxScale;
|
||||
wlWm.needsResize = true;
|
||||
app_invalidateWindow();
|
||||
app_invalidateWindow(true);
|
||||
waylandStopWaitFrame();
|
||||
}
|
||||
}
|
||||
|
@@ -708,7 +708,7 @@ static int x11EventThread(void * unused)
|
||||
|
||||
case Expose:
|
||||
{
|
||||
app_invalidateWindow();
|
||||
app_invalidateWindow(true);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user