[client] wayland: implement stopWaitFrame

This commit is contained in:
Quantum 2021-08-01 05:46:07 -04:00 committed by Geoffrey McRae
parent f64310320a
commit f08e2ece93
5 changed files with 5 additions and 4 deletions

View File

@ -70,7 +70,7 @@ static void libdecorFrameConfigure(struct libdecor_frame * frame,
wlWm.needsResize = true;
wlWm.resizeSerial = configuration->serial;
app_invalidateWindow();
waylandForceRender();
waylandStopWaitFrame();
}
else
wlWm.configured = true;

View File

@ -47,7 +47,7 @@ static void xdgSurfaceConfigure(void * data, struct xdg_surface * xdgSurface,
wlWm.needsResize = true;
wlWm.resizeSerial = serial;
app_invalidateWindow();
waylandForceRender();
waylandStopWaitFrame();
}
else
{

View File

@ -174,6 +174,7 @@ struct LG_DisplayServerOps LGDS_Wayland =
#endif
.waitFrame = waylandWaitFrame,
.skipFrame = waylandSkipFrame,
.stopWaitFrame = waylandStopWaitFrame,
.guestPointerUpdated = waylandGuestPointerUpdated,
.setPointer = waylandSetPointer,
.grabPointer = waylandGrabPointer,

View File

@ -308,4 +308,4 @@ void waylandSetWindowSize(int x, int y);
bool waylandIsValidPointerPos(int x, int y);
void waylandWaitFrame(void);
void waylandSkipFrame(void);
void waylandForceRender(void);
void waylandStopWaitFrame(void);

View File

@ -151,7 +151,7 @@ void waylandSkipFrame(void)
wl_surface_commit(wlWm.surface);
}
void waylandForceRender(void)
void waylandStopWaitFrame(void)
{
lgSignalEvent(wlWm.frameEvent);
}