swaywm / hsroots Goto Github PK
View Code? Open in Web Editor NEWA Haskell wrapper/binding to wlroots
License: GNU Lesser General Public License v2.1
A Haskell wrapper/binding to wlroots
License: GNU Lesser General Public License v2.1
This has not been updated in 3 years.
addListener
finalizers (or more specifically: finalizers associated with their wl_listeners) get called early in hsroots, causing compositors to freeze. Here is a minimum reproducible example:
outputFrameNotify :: WlListener WlrOutput
outputFrameNotify = WlListener $ \ptrWlrOutput ->
do now <- getTime Realtime
putStrLn (show now) --- <-- This pauses after a few seconds due to an early finalizer call
newOutputNotify :: WlListener WlrOutput
newOutputNotify = WlListener $ \ptrWlrOutput ->
do let outputSignals = getOutputSignals ptrWlrOutput
let frameSignal = outSignalFrame outputSignals
addListener outputFrameNotify frameSignal
return ()
main :: IO ()
main = do displayServer <- displayCreate
eventLoop <- displayGetEventLoop displayServer
ptrBackend <- backendAutocreate displayServer
let newOutputSignal = (backendEvtOutput $ backendGetSignals ptrBackend) :: Ptr (WlSignal WlrOutput)
addListener newOutputNotify newOutputSignal
backendStart ptrBackend
displayRun displayServer
displayDestroy displayServer
I can't figure out what this dependency is supposed to be.
I've established the swaywm GitHub org and moved wlroots there. We have discussed maintaining wlroots API wrappers within the swaywm organization - if you'd like, I can add you and we can host it there. Of course, the project would remain yours and you'd still have complete autonomy over it.
Now that swaywm/wlroots#1611 has been merged I'm getting a compilation error here.
I'm trying to get hsroots to build with stack. To get around
$ stack init
# ...
Selected resolver: lts-13.3
Resolver 'lts-13.3' does not have all the packages to match your requirements.
data-flags not found
- hayland requires <0.1
- xkbcommon requires -any
This may be resolved by:
- Using '--solver' to ask cabal-install to generate extra-deps, atop the chosen snapshot.
- Using '--omit-packages' to exclude mismatching package(s).
- Using '--resolver' to specify a matching snapshot/resolver
I tried
stack install cabal-install
stack init --solver --force
but this just yields
# …
CallStack (from HasCallStack):
error, called at src/Stack/Solver.hs:164:16 in stack-1.10.0-EBfIplDZnWH5c6Nkfwa7eL:Stack.Solver
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.