Skip to content

Commit

Permalink
Update quasar
Browse files Browse the repository at this point in the history
  • Loading branch information
queezle42 committed Nov 16, 2023
1 parent f09248b commit 270e7e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions quasar-wayland/src/Quasar/Wayland/Client/XdgShell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Quasar.Wayland.Client.XdgShell (
import Quasar.Observable.Core (attachSimpleObserver)
import Quasar.Prelude
import Quasar.Resources (Disposable (getDisposer), TSimpleDisposer)
import Quasar.Resources.DisposableTVar
import Quasar.Resources.DisposableVar
import Quasar.Wayland.Client
import Quasar.Wayland.Client.Surface
import Quasar.Wayland.Protocol
Expand All @@ -49,7 +49,7 @@ data ClientXdgToplevelState b = ClientXdgToplevelState {
configurationAccumulator :: TVar WindowConfiguration
}

newtype ClientXdgToplevel b = ClientXdgToplevel (DisposableTVar (ClientXdgToplevelState b))
newtype ClientXdgToplevel b = ClientXdgToplevel (DisposableVar (ClientXdgToplevelState b))

instance ClientBufferBackend b => IsWindow b (ClientXdgToplevel b) where
setFullscreen w fullscreen =
Expand All @@ -70,7 +70,7 @@ disposeClientXdgToplevel state = do
-- TODO do we have to release a buffer?

withState :: MonadSTMc NoRetry '[] m => ClientXdgToplevel b -> (ClientXdgToplevelState b -> m ()) -> m ()
withState (ClientXdgToplevel var) action = tryReadDisposableTVar var >>= mapM_ action
withState (ClientXdgToplevel var) action = tryReadDisposableVar var >>= mapM_ action



Expand Down Expand Up @@ -142,7 +142,7 @@ newClientXdgToplevel ClientWindowManager{client, wlXdgWmBase} properties configu
propertiesDisposer
}

ClientXdgToplevel <$> newDisposableTVar state disposeClientXdgToplevel
ClientXdgToplevel <$> newDisposableVar state disposeClientXdgToplevel

commitClientXdgToplevel :: forall b. ClientBufferBackend b => ClientXdgToplevel b -> ConfigureSerial -> SurfaceCommit b -> STMc NoRetry '[SomeException] ()
commitClientXdgToplevel toplevel configureSerial surfaceCommit = do
Expand Down

0 comments on commit 270e7e1

Please sign in to comment.