Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quasar-wayland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
quasar-wayland
Commits
44c6b52e
Commit
44c6b52e
authored
3 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Fix warnings
parent
c2bbf94c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Quasar/Wayland/Client.hs
+1
-6
1 addition, 6 deletions
src/Quasar/Wayland/Client.hs
with
1 addition
and
6 deletions
src/Quasar/Wayland/Client.hs
+
1
−
6
View file @
44c6b52e
...
@@ -6,13 +6,8 @@ module Quasar.Wayland.Client (
...
@@ -6,13 +6,8 @@ module Quasar.Wayland.Client (
import
Control.Concurrent.STM
import
Control.Concurrent.STM
import
Control.Monad.Catch
import
Control.Monad.Catch
import
Control.Monad.State
(
StateT
,
lift
,
runStateT
,
execStateT
)
import
Data.ByteString
qualified
as
BS
import
Data.ByteString.Lazy
qualified
as
BSL
import
Network.Socket
(
Socket
)
import
Network.Socket
(
Socket
)
import
Network.Socket
qualified
as
Socket
import
Network.Socket
qualified
as
Socket
import
Network.Socket.ByteString
qualified
as
Socket
import
Network.Socket.ByteString.Lazy
qualified
as
SocketL
import
Quasar
import
Quasar
import
Quasar.Prelude
import
Quasar.Prelude
import
Quasar.Wayland.Connection
import
Quasar.Wayland.Connection
...
@@ -35,7 +30,7 @@ newWaylandClient :: MonadResourceManager m => Socket -> m WaylandClient
...
@@ -35,7 +30,7 @@ newWaylandClient :: MonadResourceManager m => Socket -> m WaylandClient
newWaylandClient
socket
=
do
newWaylandClient
socket
=
do
(
connection
,
wlDisplay
)
<-
newWaylandConnection
@
I_wl_display
(
traceCallback
ignoreMessage
)
socket
(
connection
,
wlDisplay
)
<-
newWaylandConnection
@
I_wl_display
(
traceCallback
ignoreMessage
)
socket
(
wlRegistry
,
newId
)
<-
stepProtocol
connection
$
newObject
@
'Client
@
STM
@
I_wl_registry
(
traceCallback
ignoreMessage
)
(
_
wlRegistry
,
newId
)
<-
stepProtocol
connection
$
newObject
@
'Client
@
STM
@
I_wl_registry
(
traceCallback
ignoreMessage
)
stepProtocol
connection
$
sendMessage
wlDisplay
$
R_wl_display_get_registry
newId
stepProtocol
connection
$
sendMessage
wlDisplay
$
R_wl_display_get_registry
newId
pure
$
WaylandClient
connection
wlDisplay
pure
$
WaylandClient
connection
wlDisplay
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment