mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[client] wayland: implement stopWaitFrame
This commit is contained in:
parent
f64310320a
commit
f08e2ece93
@ -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;
|
||||
|
@ -47,7 +47,7 @@ static void xdgSurfaceConfigure(void * data, struct xdg_surface * xdgSurface,
|
||||
wlWm.needsResize = true;
|
||||
wlWm.resizeSerial = serial;
|
||||
app_invalidateWindow();
|
||||
waylandForceRender();
|
||||
waylandStopWaitFrame();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -174,6 +174,7 @@ struct LG_DisplayServerOps LGDS_Wayland =
|
||||
#endif
|
||||
.waitFrame = waylandWaitFrame,
|
||||
.skipFrame = waylandSkipFrame,
|
||||
.stopWaitFrame = waylandStopWaitFrame,
|
||||
.guestPointerUpdated = waylandGuestPointerUpdated,
|
||||
.setPointer = waylandSetPointer,
|
||||
.grabPointer = waylandGrabPointer,
|
||||
|
@ -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);
|
||||
|
@ -151,7 +151,7 @@ void waylandSkipFrame(void)
|
||||
wl_surface_commit(wlWm.surface);
|
||||
}
|
||||
|
||||
void waylandForceRender(void)
|
||||
void waylandStopWaitFrame(void)
|
||||
{
|
||||
lgSignalEvent(wlWm.frameEvent);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user