diff options
Diffstat (limited to 'lib/Wayland/Display.lean')
| -rw-r--r-- | lib/Wayland/Display.lean | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Wayland/Display.lean b/lib/Wayland/Display.lean index 5747c4d..f07c5ff 100644 --- a/lib/Wayland/Display.lean +++ b/lib/Wayland/Display.lean @@ -166,6 +166,10 @@ not be used often. -/ def DisplayM.liftIO (io : IO α) : DisplayM σ α := io +/-- Flush any pending requests. -/ +def DisplayM.flush : DisplayM σ Unit := do + (← read).disp.flush + /-- Request the application to stop processing events and exit the event loop. This can be sent at any time and stops the event loop before any further events can be processed. -/ |
