Skip to content

Commit

Permalink
[client] wayland: implement stopWaitFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 authored and gnif committed Aug 1, 2021
1 parent f643103 commit f08e2ec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/displayservers/Wayland/shell_libdecor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion client/displayservers/Wayland/shell_xdg.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void xdgSurfaceConfigure(void * data, struct xdg_surface * xdgSurface,
wlWm.needsResize = true;
wlWm.resizeSerial = serial;
app_invalidateWindow();
waylandForceRender();
waylandStopWaitFrame();
}
else
{
Expand Down
1 change: 1 addition & 0 deletions client/displayservers/Wayland/wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ struct LG_DisplayServerOps LGDS_Wayland =
#endif
.waitFrame = waylandWaitFrame,
.skipFrame = waylandSkipFrame,
.stopWaitFrame = waylandStopWaitFrame,
.guestPointerUpdated = waylandGuestPointerUpdated,
.setPointer = waylandSetPointer,
.grabPointer = waylandGrabPointer,
Expand Down
2 changes: 1 addition & 1 deletion client/displayservers/Wayland/wayland.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 1 addition & 1 deletion client/displayservers/Wayland/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void waylandSkipFrame(void)
wl_surface_commit(wlWm.surface);
}

void waylandForceRender(void)
void waylandStopWaitFrame(void)
{
lgSignalEvent(wlWm.frameEvent);
}

0 comments on commit f08e2ec

Please sign in to comment.