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.needsResize = true;
|
||||||
wlWm.resizeSerial = configuration->serial;
|
wlWm.resizeSerial = configuration->serial;
|
||||||
app_invalidateWindow();
|
app_invalidateWindow();
|
||||||
waylandForceRender();
|
waylandStopWaitFrame();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
wlWm.configured = true;
|
wlWm.configured = true;
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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,
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user