[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.needsResize = true;
wlWm.resizeSerial = configuration->serial; wlWm.resizeSerial = configuration->serial;
app_invalidateWindow(); app_invalidateWindow();
waylandForceRender(); waylandStopWaitFrame();
} }
else else
wlWm.configured = true; wlWm.configured = true;

View File

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

View File

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

View File

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

View File

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