diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-12-21 13:19:48 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-12-21 13:19:56 +0530 |
| commit | a2a8e8dd046678816c3797cb894b20abfe84e360 (patch) | |
| tree | 0b40288086b055b0a13f3a5621b836eca1d7b2c5 /src/Chelleport/AppShell.hs | |
| parent | d8667213fa49242701db4bf592754ab87749efa5 (diff) | |
| download | chelleport-a2a8e8dd046678816c3797cb894b20abfe84e360.tar.gz chelleport-a2a8e8dd046678816c3797cb894b20abfe84e360.zip | |
Fix issue with pointer coordinates + Add mouse press/release actions
Diffstat (limited to 'src/Chelleport/AppShell.hs')
| -rw-r--r-- | src/Chelleport/AppShell.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Chelleport/AppShell.hs b/src/Chelleport/AppShell.hs index 28007f7..b31c964 100644 --- a/src/Chelleport/AppShell.hs +++ b/src/Chelleport/AppShell.hs @@ -1,5 +1,6 @@ module Chelleport.AppShell (setupAppShell, MonadAppShell (..)) where +import Chelleport.Control (MonadControl (mouseButtonUp)) import Chelleport.Draw (colorBackground) import Chelleport.Types import Control.Monad (foldM) @@ -22,6 +23,7 @@ instance (MonadIO m) => MonadAppShell (AppM m) where ctx <- ask SDL.destroyRenderer $ ctxRenderer ctx SDL.destroyWindow $ ctxWindow ctx + mouseButtonUp liftIO $ do X11.closeDisplay $ ctxX11Display ctx exitSuccess |
