mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 15:32:50 -05:00
core: mock wayland context for tests & add i18n guidance to CONTRIBUTING
This commit is contained in:
@@ -12,6 +12,16 @@ import (
|
||||
wlclient "github.com/AvengeMedia/DankMaterialShell/core/pkg/go-wayland/wayland/client"
|
||||
)
|
||||
|
||||
type WaylandContext interface {
|
||||
Display() *wlclient.Display
|
||||
Post(fn func())
|
||||
FatalError() <-chan error
|
||||
Start()
|
||||
Close()
|
||||
}
|
||||
|
||||
var _ WaylandContext = (*SharedContext)(nil)
|
||||
|
||||
type SharedContext struct {
|
||||
display *wlclient.Display
|
||||
stopChan chan struct{}
|
||||
|
||||
Reference in New Issue
Block a user