refactor(wayland): import protocol bindings from go-wayland-bindings (#85)
Bump purego-libwayland to v0.9.0 (server runtime only) and add go-wayland-bindings v0.1.0 for the server protocol packages. Rename kdedecoration, tabletv2, wlrforeigntoplevel and wlroutputpower to their new package names, and regenerate imagecapture with wlbgen -side server.
- commit
- 6f718b0c4dbfa7bebff8853007af85f70bd487e2
- author
- bnema · · 2026-10-01 18:13 UTC
- committer
- GitHub · · 2026-10-01 18:13 UTC
- parent
- f5f82f7
- signature
- GPG Unverified
B5690EEEBB952194The key is unknown
100 files · +322 -318
M examples/testime/main.go +1 -1
| @@ -12,7 +12,7 @@ import ( | |||
| 12 | 12 | "os" | |
| 13 | 13 | "time" | |
| 14 | 14 | ||
| 15 | - | "github.com/bnema/purego-libwayland/protocol/inputmethod" | |
| 15 | + | "github.com/bnema/go-wayland-bindings/server/inputmethod" | |
| 16 | 16 | "github.com/bnema/wlturbo" | |
| 17 | 17 | clientcore "github.com/bnema/wlturbo/protocol/core" | |
| 18 | 18 | clientime "github.com/bnema/wlturbo/protocol/inputmethod" | |
| @@ -12,7 +12,7 @@ import ( | |||||
| 12 | "os" | 12 | "os" | ||
| 13 | "time" | 13 | "time" | ||
| 14 | 14 | ||||
| 15 | - | "github.com/bnema/purego-libwayland/protocol/inputmethod" | 15 | + | "github.com/bnema/go-wayland-bindings/server/inputmethod" |
| 16 | "github.com/bnema/wlturbo" | 16 | "github.com/bnema/wlturbo" | ||
| 17 | clientcore "github.com/bnema/wlturbo/protocol/core" | 17 | clientcore "github.com/bnema/wlturbo/protocol/core" | ||
| 18 | clientime "github.com/bnema/wlturbo/protocol/inputmethod" | 18 | clientime "github.com/bnema/wlturbo/protocol/inputmethod" | ||
M go.mod +2 -1
| @@ -3,8 +3,9 @@ module github.com/bnema/neferwl | |||
| 3 | 3 | go 1.27 | |
| 4 | 4 | ||
| 5 | 5 | require ( | |
| 6 | + | github.com/bnema/go-wayland-bindings v0.1.0 | |
| 6 | 7 | github.com/bnema/purego v0.13.0-bnema.1 | |
| 7 | - | github.com/bnema/purego-libwayland v0.8.0 | |
| 8 | + | github.com/bnema/purego-libwayland v0.9.0 | |
| 8 | 9 | github.com/bnema/purego-vulkan v0.6.0 | |
| 9 | 10 | github.com/bnema/wlturbo v0.5.0 | |
| 10 | 11 | github.com/bnema/zerowrap v1.4.1 | |
| @@ -3,8 +3,9 @@ module github.com/bnema/neferwl | |||||
| 3 | go 1.27 | 3 | go 1.27 | ||
| 4 | 4 | ||||
| 5 | require ( | 5 | require ( | ||
| 6 | + | github.com/bnema/go-wayland-bindings v0.1.0 | |||
| 6 | github.com/bnema/purego v0.13.0-bnema.1 | 7 | github.com/bnema/purego v0.13.0-bnema.1 | ||
| 7 | - | github.com/bnema/purego-libwayland v0.8.0 | 8 | + | github.com/bnema/purego-libwayland v0.9.0 |
| 8 | github.com/bnema/purego-vulkan v0.6.0 | 9 | github.com/bnema/purego-vulkan v0.6.0 | ||
| 9 | github.com/bnema/wlturbo v0.5.0 | 10 | github.com/bnema/wlturbo v0.5.0 | ||
| 10 | github.com/bnema/zerowrap v1.4.1 | 11 | github.com/bnema/zerowrap v1.4.1 | ||
M go.sum +4 -2 generated file: collapsed
M internal/adapters/wayland/acquire_failure_test.go +1 -1
| @@ -7,8 +7,8 @@ import ( | |||
| 7 | 7 | "testing" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | 12 | "github.com/stretchr/testify/mock" | |
| 13 | 13 | "golang.org/x/sys/unix" | |
| 14 | 14 | ) | |
| @@ -7,8 +7,8 @@ import ( | |||||
| 7 | "testing" | 7 | "testing" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 10 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | "github.com/stretchr/testify/mock" | 12 | "github.com/stretchr/testify/mock" | ||
| 13 | "golang.org/x/sys/unix" | 13 | "golang.org/x/sys/unix" | ||
| 14 | ) | 14 | ) | ||
M internal/adapters/wayland/activation.go +2 -2
| @@ -4,9 +4,9 @@ import ( | |||
| 4 | 4 | "crypto/rand" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/xdgactivation" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/xdgactivation" | |
| 10 | 10 | "github.com/bnema/purego-libwayland/server" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -4,9 +4,9 @@ import ( | |||||
| 4 | "crypto/rand" | 4 | "crypto/rand" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/xdgactivation" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/xdgactivation" | |||
| 10 | "github.com/bnema/purego-libwayland/server" | 10 | "github.com/bnema/purego-libwayland/server" | ||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
M internal/adapters/wayland/activation_test.go +1 -1
| @@ -4,8 +4,8 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/xdgactivation" | |
| 7 | 8 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/xdgactivation" | |
| 9 | 9 | "github.com/bnema/wlturbo" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| @@ -4,8 +4,8 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/xdgactivation" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 8 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/xdgactivation" | |||
| 9 | "github.com/bnema/wlturbo" | 9 | "github.com/bnema/wlturbo" | ||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
M internal/adapters/wayland/alpha.go +2 -2
| @@ -3,8 +3,8 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "math" | |
| 5 | 5 | ||
| 6 | - | "github.com/bnema/purego-libwayland/protocol/alphamodifier" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 6 | + | "github.com/bnema/go-wayland-bindings/server/alphamodifier" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | 8 | "github.com/bnema/purego-libwayland/server" | |
| 9 | 9 | ) | |
| 10 | 10 | ||
| @@ -3,8 +3,8 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "math" | 4 | "math" | ||
| 5 | 5 | ||||
| 6 | - | "github.com/bnema/purego-libwayland/protocol/alphamodifier" | 6 | + | "github.com/bnema/go-wayland-bindings/server/alphamodifier" |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 8 | "github.com/bnema/purego-libwayland/server" | 8 | "github.com/bnema/purego-libwayland/server" | ||
| 9 | ) | 9 | ) | ||
| 10 | 10 | ||||
M internal/adapters/wayland/alpha_test.go +2 -2
| @@ -5,9 +5,9 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/alphamodifier" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | 10 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/alphamodifier" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| 13 | 13 | // contentMatching waits for a content of the window that matches want. | |
| @@ -5,9 +5,9 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/alphamodifier" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 10 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/alphamodifier" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
| 13 | // contentMatching waits for a content of the window that matches want. | 13 | // contentMatching waits for a content of the window that matches want. | ||
M internal/adapters/wayland/capture_admission_test.go +2 -2
| @@ -5,10 +5,10 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |
| 9 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |
| 8 | 10 | "github.com/bnema/neferwl/internal/logging" | |
| 9 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 10 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |
| 11 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |
| 12 | 12 | "github.com/bnema/wlturbo" | |
| 13 | 13 | "github.com/bnema/zerowrap" | |
| 14 | 14 | "golang.org/x/sys/unix" | |
| @@ -5,10 +5,10 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |||
| 9 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |||
| 8 | "github.com/bnema/neferwl/internal/logging" | 10 | "github.com/bnema/neferwl/internal/logging" | ||
| 9 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 10 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |||
| 11 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |||
| 12 | "github.com/bnema/wlturbo" | 12 | "github.com/bnema/wlturbo" | ||
| 13 | "github.com/bnema/zerowrap" | 13 | "github.com/bnema/zerowrap" | ||
| 14 | "golang.org/x/sys/unix" | 14 | "golang.org/x/sys/unix" | ||
M internal/adapters/wayland/captureauth_test.go +2 -2
| @@ -10,11 +10,11 @@ import ( | |||
| 10 | 10 | "testing" | |
| 11 | 11 | "time" | |
| 12 | 12 | ||
| 13 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |
| 14 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |
| 13 | 15 | "github.com/bnema/neferwl/internal/adapters/captureallow" | |
| 14 | 16 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | |
| 15 | 17 | "github.com/bnema/neferwl/internal/ports" | |
| 16 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |
| 17 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |
| 18 | 18 | "github.com/bnema/zerowrap" | |
| 19 | 19 | "github.com/stretchr/testify/mock" | |
| 20 | 20 | "golang.org/x/sys/unix" | |
| @@ -10,11 +10,11 @@ import ( | |||||
| 10 | "testing" | 10 | "testing" | ||
| 11 | "time" | 11 | "time" | ||
| 12 | 12 | ||||
| 13 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |||
| 14 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |||
| 13 | "github.com/bnema/neferwl/internal/adapters/captureallow" | 15 | "github.com/bnema/neferwl/internal/adapters/captureallow" | ||
| 14 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | 16 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | ||
| 15 | "github.com/bnema/neferwl/internal/ports" | 17 | "github.com/bnema/neferwl/internal/ports" | ||
| 16 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |||
| 17 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |||
| 18 | "github.com/bnema/zerowrap" | 18 | "github.com/bnema/zerowrap" | ||
| 19 | "github.com/stretchr/testify/mock" | 19 | "github.com/stretchr/testify/mock" | ||
| 20 | "golang.org/x/sys/unix" | 20 | "golang.org/x/sys/unix" | ||
M internal/adapters/wayland/clipboard.go +3 -3
| @@ -1,9 +1,9 @@ | |||
| 1 | 1 | package wayland | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | - | "github.com/bnema/purego-libwayland/protocol/extdatacontrol" | |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/primaryselection" | |
| 6 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 4 | + | "github.com/bnema/go-wayland-bindings/server/extdatacontrol" | |
| 5 | + | "github.com/bnema/go-wayland-bindings/server/primaryselection" | |
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 7 | "github.com/bnema/purego-libwayland/server" | |
| 8 | 8 | "golang.org/x/sys/unix" | |
| 9 | 9 | ) | |
| @@ -1,9 +1,9 @@ | |||||
| 1 | package wayland | 1 | package wayland | ||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | - | "github.com/bnema/purego-libwayland/protocol/extdatacontrol" | 4 | + | "github.com/bnema/go-wayland-bindings/server/extdatacontrol" |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/primaryselection" | 5 | + | "github.com/bnema/go-wayland-bindings/server/primaryselection" |
| 6 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 7 | "github.com/bnema/purego-libwayland/server" | 7 | "github.com/bnema/purego-libwayland/server" | ||
| 8 | "golang.org/x/sys/unix" | 8 | "golang.org/x/sys/unix" | ||
| 9 | ) | 9 | ) | ||
M internal/adapters/wayland/clipboard_test.go +3 -3
| @@ -5,10 +5,10 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/extdatacontrol" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/primaryselection" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/extdatacontrol" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/primaryselection" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | 12 | "github.com/bnema/wlturbo" | |
| 13 | 13 | "golang.org/x/sys/unix" | |
| 14 | 14 | ) | |
| @@ -5,10 +5,10 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/extdatacontrol" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/primaryselection" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/extdatacontrol" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/primaryselection" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | "github.com/bnema/wlturbo" | 12 | "github.com/bnema/wlturbo" | ||
| 13 | "golang.org/x/sys/unix" | 13 | "golang.org/x/sys/unix" | ||
| 14 | ) | 14 | ) | ||
M internal/adapters/wayland/colormanagement.go +2 -2
| @@ -3,8 +3,8 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "math" | |
| 5 | 5 | ||
| 6 | - | cm "github.com/bnema/purego-libwayland/protocol/colormanagement" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 6 | + | cm "github.com/bnema/go-wayland-bindings/server/colormanagement" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | 8 | "github.com/bnema/purego-libwayland/server" | |
| 9 | 9 | ) | |
| 10 | 10 | ||
| @@ -3,8 +3,8 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "math" | 4 | "math" | ||
| 5 | 5 | ||||
| 6 | - | cm "github.com/bnema/purego-libwayland/protocol/colormanagement" | 6 | + | cm "github.com/bnema/go-wayland-bindings/server/colormanagement" |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 8 | "github.com/bnema/purego-libwayland/server" | 8 | "github.com/bnema/purego-libwayland/server" | ||
| 9 | ) | 9 | ) | ||
| 10 | 10 | ||||
M internal/adapters/wayland/colormanagement_errors_test.go +2 -2
| @@ -3,9 +3,9 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "testing" | |
| 5 | 5 | ||
| 6 | + | cm "github.com/bnema/go-wayland-bindings/server/colormanagement" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | 8 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | cm "github.com/bnema/purego-libwayland/protocol/colormanagement" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 9 | 9 | ) | |
| 10 | 10 | ||
| 11 | 11 | func TestColorManagerErrors(t *testing.T) { | |
| @@ -3,9 +3,9 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "testing" | 4 | "testing" | ||
| 5 | 5 | ||||
| 6 | + | cm "github.com/bnema/go-wayland-bindings/server/colormanagement" | |||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 8 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | cm "github.com/bnema/purego-libwayland/protocol/colormanagement" | |||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 9 | ) | 9 | ) | ||
| 10 | 10 | ||||
| 11 | func TestColorManagerErrors(t *testing.T) { | 11 | func TestColorManagerErrors(t *testing.T) { | ||
M internal/adapters/wayland/colormanagement_test.go +2 -2
| @@ -4,10 +4,10 @@ import ( | |||
| 4 | 4 | "context" | |
| 5 | 5 | "testing" | |
| 6 | 6 | ||
| 7 | + | cm "github.com/bnema/go-wayland-bindings/server/colormanagement" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/logging" | |
| 8 | 10 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | cm "github.com/bnema/purego-libwayland/protocol/colormanagement" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 11 | 11 | "github.com/bnema/wlturbo" | |
| 12 | 12 | ) | |
| 13 | 13 | ||
| @@ -4,10 +4,10 @@ import ( | |||||
| 4 | "context" | 4 | "context" | ||
| 5 | "testing" | 5 | "testing" | ||
| 6 | 6 | ||||
| 7 | + | cm "github.com/bnema/go-wayland-bindings/server/colormanagement" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/logging" | 9 | "github.com/bnema/neferwl/internal/logging" | ||
| 8 | "github.com/bnema/neferwl/internal/ports" | 10 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | cm "github.com/bnema/purego-libwayland/protocol/colormanagement" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 11 | "github.com/bnema/wlturbo" | 11 | "github.com/bnema/wlturbo" | ||
| 12 | ) | 12 | ) | ||
| 13 | 13 | ||||
M internal/adapters/wayland/colorrepresentation.go +2 -2
| @@ -1,8 +1,8 @@ | |||
| 1 | 1 | package wayland | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | - | "github.com/bnema/purego-libwayland/protocol/colorrepresentation" | |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 4 | + | "github.com/bnema/go-wayland-bindings/server/colorrepresentation" | |
| 5 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | 6 | "github.com/bnema/purego-libwayland/server" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| @@ -1,8 +1,8 @@ | |||||
| 1 | package wayland | 1 | package wayland | ||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | - | "github.com/bnema/purego-libwayland/protocol/colorrepresentation" | 4 | + | "github.com/bnema/go-wayland-bindings/server/colorrepresentation" |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 5 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 6 | "github.com/bnema/purego-libwayland/server" | 6 | "github.com/bnema/purego-libwayland/server" | ||
| 7 | ) | 7 | ) | ||
| 8 | 8 | ||||
M internal/adapters/wayland/colorrepresentation_test.go +2 -2
| @@ -3,8 +3,8 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "testing" | |
| 5 | 5 | ||
| 6 | - | cr "github.com/bnema/purego-libwayland/protocol/colorrepresentation" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 6 | + | cr "github.com/bnema/go-wayland-bindings/server/colorrepresentation" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| 10 | 10 | func TestColorRepresentationProtocol(t *testing.T) { | |
| @@ -3,8 +3,8 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "testing" | 4 | "testing" | ||
| 5 | 5 | ||||
| 6 | - | cr "github.com/bnema/purego-libwayland/protocol/colorrepresentation" | 6 | + | cr "github.com/bnema/go-wayland-bindings/server/colorrepresentation" |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 8 | ) | 8 | ) | ||
| 9 | 9 | ||||
| 10 | func TestColorRepresentationProtocol(t *testing.T) { | 10 | func TestColorRepresentationProtocol(t *testing.T) { | ||
M internal/adapters/wayland/commit_hotpath_bench_test.go +3 -3
| @@ -6,10 +6,10 @@ import ( | |||
| 6 | 6 | "testing" | |
| 7 | 7 | "time" | |
| 8 | 8 | ||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 9 | 12 | "github.com/bnema/neferwl/internal/logging" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 13 | 13 | "github.com/bnema/wlturbo" | |
| 14 | 14 | "golang.org/x/sys/unix" | |
| 15 | 15 | ) | |
| @@ -6,10 +6,10 @@ import ( | |||||
| 6 | "testing" | 6 | "testing" | ||
| 7 | "time" | 7 | "time" | ||
| 8 | 8 | ||||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 9 | "github.com/bnema/neferwl/internal/logging" | 12 | "github.com/bnema/neferwl/internal/logging" | ||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 13 | "github.com/bnema/wlturbo" | 13 | "github.com/bnema/wlturbo" | ||
| 14 | "golang.org/x/sys/unix" | 14 | "golang.org/x/sys/unix" | ||
| 15 | ) | 15 | ) | ||
M internal/adapters/wayland/commit_lifecycle_test.go +6 -6
| @@ -5,13 +5,13 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |
| 13 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 8 | 14 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |
| 14 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 15 | 15 | "github.com/bnema/purego-libwayland/server" | |
| 16 | 16 | ) | |
| 17 | 17 | ||
| @@ -5,13 +5,13 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |||
| 13 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 14 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |||
| 14 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 15 | "github.com/bnema/purego-libwayland/server" | 15 | "github.com/bnema/purego-libwayland/server" | ||
| 16 | ) | 16 | ) | ||
| 17 | 17 | ||||
M internal/adapters/wayland/constraints.go +4 -4
| @@ -1,11 +1,11 @@ | |||
| 1 | 1 | package wayland | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | + | "github.com/bnema/go-wayland-bindings/server/pointerconstraints" | |
| 5 | + | "github.com/bnema/go-wayland-bindings/server/pointerwarp" | |
| 6 | + | "github.com/bnema/go-wayland-bindings/server/relativepointer" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 4 | 8 | "github.com/bnema/neferwl/internal/ports" | |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/pointerconstraints" | |
| 6 | - | "github.com/bnema/purego-libwayland/protocol/pointerwarp" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/relativepointer" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 9 | 9 | "github.com/bnema/purego-libwayland/server" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| @@ -1,11 +1,11 @@ | |||||
| 1 | package wayland | 1 | package wayland | ||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | + | "github.com/bnema/go-wayland-bindings/server/pointerconstraints" | |||
| 5 | + | "github.com/bnema/go-wayland-bindings/server/pointerwarp" | |||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/relativepointer" | |||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 4 | "github.com/bnema/neferwl/internal/ports" | 8 | "github.com/bnema/neferwl/internal/ports" | ||
| 5 | - | "github.com/bnema/purego-libwayland/protocol/pointerconstraints" | |||
| 6 | - | "github.com/bnema/purego-libwayland/protocol/pointerwarp" | |||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/relativepointer" | |||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 9 | "github.com/bnema/purego-libwayland/server" | 9 | "github.com/bnema/purego-libwayland/server" | ||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
M internal/adapters/wayland/constraints_test.go +5 -5
| @@ -4,12 +4,12 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/pointerconstraints" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/pointerwarp" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/relativepointer" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 7 | 12 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/pointerconstraints" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/pointerwarp" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/relativepointer" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 13 | 13 | "github.com/bnema/wlturbo" | |
| 14 | 14 | ) | |
| 15 | 15 | ||
| @@ -4,12 +4,12 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/pointerconstraints" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/pointerwarp" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/relativepointer" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 12 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/pointerconstraints" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/pointerwarp" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/relativepointer" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 13 | "github.com/bnema/wlturbo" | 13 | "github.com/bnema/wlturbo" | ||
| 14 | ) | 14 | ) | ||
| 15 | 15 | ||||
M internal/adapters/wayland/cursor.go +4 -4
| @@ -3,10 +3,10 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "context" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/cursorshape" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/tablet" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/cursorshape" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/tabletv2" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | 10 | "github.com/bnema/purego-libwayland/server" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -43,7 +43,7 @@ func (m cursorShapeManager) GetPointer(r *cursorshape.WpCursorShapeManagerV1, id | |||
| 43 | 43 | } | |
| 44 | 44 | ||
| 45 | 45 | // GetTabletToolV2 is unreachable: neferwl has no tablet global. | |
| 46 | - | func (cursorShapeManager) GetTabletToolV2(*cursorshape.WpCursorShapeManagerV1, uint32, *tabletv2.ZwpTabletToolV2) { | |
| 46 | + | func (cursorShapeManager) GetTabletToolV2(*cursorshape.WpCursorShapeManagerV1, uint32, *tablet.ZwpTabletToolV2) { | |
| 47 | 47 | } | |
| 48 | 48 | ||
| 49 | 49 | type cursorShapeDevice struct{ server *Server } | |
| @@ -3,10 +3,10 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "context" | 4 | "context" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/cursorshape" | |||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/tablet" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/cursorshape" | |||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/tabletv2" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | "github.com/bnema/purego-libwayland/server" | 10 | "github.com/bnema/purego-libwayland/server" | ||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
| @@ -43,7 +43,7 @@ func (m cursorShapeManager) GetPointer(r *cursorshape.WpCursorShapeManagerV1, id | |||||
| 43 | } | 43 | } | ||
| 44 | 44 | ||||
| 45 | // GetTabletToolV2 is unreachable: neferwl has no tablet global. | 45 | // GetTabletToolV2 is unreachable: neferwl has no tablet global. | ||
| 46 | - | func (cursorShapeManager) GetTabletToolV2(*cursorshape.WpCursorShapeManagerV1, uint32, *tabletv2.ZwpTabletToolV2) { | 46 | + | func (cursorShapeManager) GetTabletToolV2(*cursorshape.WpCursorShapeManagerV1, uint32, *tablet.ZwpTabletToolV2) { |
| 47 | } | 47 | } | ||
| 48 | 48 | ||||
| 49 | type cursorShapeDevice struct{ server *Server } | 49 | type cursorShapeDevice struct{ server *Server } | ||
M internal/adapters/wayland/cursor_test.go +2 -2
| @@ -5,10 +5,10 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/cursorshape" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | 10 | "github.com/bnema/neferwl/internal/logging" | |
| 9 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/cursorshape" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | 12 | "golang.org/x/sys/unix" | |
| 13 | 13 | ) | |
| 14 | 14 | ||
| @@ -5,10 +5,10 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/cursorshape" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | "github.com/bnema/neferwl/internal/logging" | 10 | "github.com/bnema/neferwl/internal/logging" | ||
| 9 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/cursorshape" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | "golang.org/x/sys/unix" | 12 | "golang.org/x/sys/unix" | ||
| 13 | ) | 13 | ) | ||
| 14 | 14 | ||||
M internal/adapters/wayland/damage_test.go +2 -2
| @@ -4,9 +4,9 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 10 | 10 | "golang.org/x/sys/unix" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -4,9 +4,9 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 10 | "golang.org/x/sys/unix" | 10 | "golang.org/x/sys/unix" | ||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
M internal/adapters/wayland/decoration.go +13 -13
| @@ -1,10 +1,10 @@ | |||
| 1 | 1 | package wayland | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | - | "github.com/bnema/purego-libwayland/protocol/kdedecoration" | |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 6 | - | "github.com/bnema/purego-libwayland/protocol/xdgdecoration" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 4 | + | "github.com/bnema/go-wayland-bindings/server/serverdecoration" | |
| 5 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | + | "github.com/bnema/go-wayland-bindings/server/xdgdecoration" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 8 | 8 | "github.com/bnema/purego-libwayland/server" | |
| 9 | 9 | ) | |
| 10 | 10 | ||
| @@ -21,33 +21,33 @@ func registerDecoration(d *server.Display, s *Server) error { | |||
| 21 | 21 | } | |
| 22 | 22 | // GTK only speaks KDE's older protocol: without it GTK4 draws its own | |
| 23 | 23 | // title bar. | |
| 24 | - | return kdedecoration.NewOrgKdeKwinServerDecorationManagerGlobal(d, 1, func(c server.Client, v, id uint32) { | |
| 25 | - | m, err := kdedecoration.NewOrgKdeKwinServerDecorationManager(c, int32(v), id, kdeManager{}) | |
| 24 | + | return serverdecoration.NewOrgKdeKwinServerDecorationManagerGlobal(d, 1, func(c server.Client, v, id uint32) { | |
| 25 | + | m, err := serverdecoration.NewOrgKdeKwinServerDecorationManager(c, int32(v), id, kdeManager{}) | |
| 26 | 26 | if err == nil { | |
| 27 | - | m.SendDefaultMode(uint32(kdedecoration.OrgKdeKwinServerDecorationManagerModeServer)) | |
| 27 | + | m.SendDefaultMode(uint32(serverdecoration.OrgKdeKwinServerDecorationManagerModeServer)) | |
| 28 | 28 | } | |
| 29 | 29 | }) | |
| 30 | 30 | } | |
| 31 | 31 | ||
| 32 | 32 | type kdeManager struct{} | |
| 33 | 33 | ||
| 34 | - | func (kdeManager) Create(r *kdedecoration.OrgKdeKwinServerDecorationManager, id uint32, _ *wayland.Surface) { | |
| 35 | - | if d, err := kdedecoration.NewOrgKdeKwinServerDecoration(r.Client(), r.Version(), id, kdeDecoration{}); err == nil { | |
| 36 | - | d.SendMode(uint32(kdedecoration.OrgKdeKwinServerDecorationModeServer)) | |
| 34 | + | func (kdeManager) Create(r *serverdecoration.OrgKdeKwinServerDecorationManager, id uint32, _ *wayland.Surface) { | |
| 35 | + | if d, err := serverdecoration.NewOrgKdeKwinServerDecoration(r.Client(), r.Version(), id, kdeDecoration{}); err == nil { | |
| 36 | + | d.SendMode(uint32(serverdecoration.OrgKdeKwinServerDecorationModeServer)) | |
| 37 | 37 | } | |
| 38 | 38 | } | |
| 39 | 39 | ||
| 40 | 40 | type kdeDecoration struct{} | |
| 41 | 41 | ||
| 42 | - | func (kdeDecoration) Release(*kdedecoration.OrgKdeKwinServerDecoration) {} | |
| 42 | + | func (kdeDecoration) Release(*serverdecoration.OrgKdeKwinServerDecoration) {} | |
| 43 | 43 | ||
| 44 | 44 | // A requested mode is acknowledged as is: the protocol has no way to | |
| 45 | 45 | // refuse, and answering server to a client that insists on client-side | |
| 46 | 46 | // (Firefox) makes it ask again forever. The server default already makes | |
| 47 | 47 | // GTK drop its title bar. | |
| 48 | 48 | // Unknown modes are ignored: replacing them would restart the loop. | |
| 49 | - | func (kdeDecoration) RequestMode(r *kdedecoration.OrgKdeKwinServerDecoration, mode uint32) { | |
| 50 | - | if mode > uint32(kdedecoration.OrgKdeKwinServerDecorationModeServer) { | |
| 49 | + | func (kdeDecoration) RequestMode(r *serverdecoration.OrgKdeKwinServerDecoration, mode uint32) { | |
| 50 | + | if mode > uint32(serverdecoration.OrgKdeKwinServerDecorationModeServer) { | |
| 51 | 51 | return | |
| 52 | 52 | } | |
| 53 | 53 | r.SendMode(mode) | |
| @@ -1,10 +1,10 @@ | |||||
| 1 | package wayland | 1 | package wayland | ||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | - | "github.com/bnema/purego-libwayland/protocol/kdedecoration" | 4 | + | "github.com/bnema/go-wayland-bindings/server/serverdecoration" |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 5 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 6 | - | "github.com/bnema/purego-libwayland/protocol/xdgdecoration" | 6 | + | "github.com/bnema/go-wayland-bindings/server/xdgdecoration" |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | 7 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" |
| 8 | "github.com/bnema/purego-libwayland/server" | 8 | "github.com/bnema/purego-libwayland/server" | ||
| 9 | ) | 9 | ) | ||
| 10 | 10 | ||||
| @@ -21,33 +21,33 @@ func registerDecoration(d *server.Display, s *Server) error { | |||||
| 21 | } | 21 | } | ||
| 22 | // GTK only speaks KDE's older protocol: without it GTK4 draws its own | 22 | // GTK only speaks KDE's older protocol: without it GTK4 draws its own | ||
| 23 | // title bar. | 23 | // title bar. | ||
| 24 | - | return kdedecoration.NewOrgKdeKwinServerDecorationManagerGlobal(d, 1, func(c server.Client, v, id uint32) { | 24 | + | return serverdecoration.NewOrgKdeKwinServerDecorationManagerGlobal(d, 1, func(c server.Client, v, id uint32) { |
| 25 | - | m, err := kdedecoration.NewOrgKdeKwinServerDecorationManager(c, int32(v), id, kdeManager{}) | 25 | + | m, err := serverdecoration.NewOrgKdeKwinServerDecorationManager(c, int32(v), id, kdeManager{}) |
| 26 | if err == nil { | 26 | if err == nil { | ||
| 27 | - | m.SendDefaultMode(uint32(kdedecoration.OrgKdeKwinServerDecorationManagerModeServer)) | 27 | + | m.SendDefaultMode(uint32(serverdecoration.OrgKdeKwinServerDecorationManagerModeServer)) |
| 28 | } | 28 | } | ||
| 29 | }) | 29 | }) | ||
| 30 | } | 30 | } | ||
| 31 | 31 | ||||
| 32 | type kdeManager struct{} | 32 | type kdeManager struct{} | ||
| 33 | 33 | ||||
| 34 | - | func (kdeManager) Create(r *kdedecoration.OrgKdeKwinServerDecorationManager, id uint32, _ *wayland.Surface) { | 34 | + | func (kdeManager) Create(r *serverdecoration.OrgKdeKwinServerDecorationManager, id uint32, _ *wayland.Surface) { |
| 35 | - | if d, err := kdedecoration.NewOrgKdeKwinServerDecoration(r.Client(), r.Version(), id, kdeDecoration{}); err == nil { | 35 | + | if d, err := serverdecoration.NewOrgKdeKwinServerDecoration(r.Client(), r.Version(), id, kdeDecoration{}); err == nil { |
| 36 | - | d.SendMode(uint32(kdedecoration.OrgKdeKwinServerDecorationModeServer)) | 36 | + | d.SendMode(uint32(serverdecoration.OrgKdeKwinServerDecorationModeServer)) |
| 37 | } | 37 | } | ||
| 38 | } | 38 | } | ||
| 39 | 39 | ||||
| 40 | type kdeDecoration struct{} | 40 | type kdeDecoration struct{} | ||
| 41 | 41 | ||||
| 42 | - | func (kdeDecoration) Release(*kdedecoration.OrgKdeKwinServerDecoration) {} | 42 | + | func (kdeDecoration) Release(*serverdecoration.OrgKdeKwinServerDecoration) {} |
| 43 | 43 | ||||
| 44 | // A requested mode is acknowledged as is: the protocol has no way to | 44 | // A requested mode is acknowledged as is: the protocol has no way to | ||
| 45 | // refuse, and answering server to a client that insists on client-side | 45 | // refuse, and answering server to a client that insists on client-side | ||
| 46 | // (Firefox) makes it ask again forever. The server default already makes | 46 | // (Firefox) makes it ask again forever. The server default already makes | ||
| 47 | // GTK drop its title bar. | 47 | // GTK drop its title bar. | ||
| 48 | // Unknown modes are ignored: replacing them would restart the loop. | 48 | // Unknown modes are ignored: replacing them would restart the loop. | ||
| 49 | - | func (kdeDecoration) RequestMode(r *kdedecoration.OrgKdeKwinServerDecoration, mode uint32) { | 49 | + | func (kdeDecoration) RequestMode(r *serverdecoration.OrgKdeKwinServerDecoration, mode uint32) { |
| 50 | - | if mode > uint32(kdedecoration.OrgKdeKwinServerDecorationModeServer) { | 50 | + | if mode > uint32(serverdecoration.OrgKdeKwinServerDecorationModeServer) { |
| 51 | return | 51 | return | ||
| 52 | } | 52 | } | ||
| 53 | r.SendMode(mode) | 53 | r.SendMode(mode) | ||
M internal/adapters/wayland/decoration_test.go +6 -6
| @@ -4,9 +4,9 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/serverdecoration" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/kdedecoration" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | 10 | "github.com/bnema/wlturbo" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -32,14 +32,14 @@ func TestKDEDecorationAcknowledgesMode(t *testing.T) { | |||
| 32 | 32 | proxy := &kdeModeProxy{modes: make(chan uint32, 8)} | |
| 33 | 33 | proxy.SetID(deco) | |
| 34 | 34 | registerWireProxy(c, proxy) | |
| 35 | - | requestProtocol(t, c, mgr, kdedecoration.OrgKdeKwinServerDecorationManagerRequestCreate, deco, surf) | |
| 36 | - | requestProtocol(t, c, deco, kdedecoration.OrgKdeKwinServerDecorationRequestRequestMode, uint32(kdedecoration.OrgKdeKwinServerDecorationModeClient)) | |
| 35 | + | requestProtocol(t, c, mgr, serverdecoration.OrgKdeKwinServerDecorationManagerRequestCreate, deco, surf) | |
| 36 | + | requestProtocol(t, c, deco, serverdecoration.OrgKdeKwinServerDecorationRequestRequestMode, uint32(serverdecoration.OrgKdeKwinServerDecorationModeClient)) | |
| 37 | 37 | // An undefined mode gets no answer. | |
| 38 | - | requestProtocol(t, c, deco, kdedecoration.OrgKdeKwinServerDecorationRequestRequestMode, uint32(3)) | |
| 38 | + | requestProtocol(t, c, deco, serverdecoration.OrgKdeKwinServerDecorationRequestRequestMode, uint32(3)) | |
| 39 | 39 | if err := c.Roundtrip(); err != nil { | |
| 40 | 40 | t.Fatal(err) | |
| 41 | 41 | } | |
| 42 | - | for _, want := range []kdedecoration.OrgKdeKwinServerDecorationMode{kdedecoration.OrgKdeKwinServerDecorationModeServer, kdedecoration.OrgKdeKwinServerDecorationModeClient} { | |
| 42 | + | for _, want := range []serverdecoration.OrgKdeKwinServerDecorationMode{serverdecoration.OrgKdeKwinServerDecorationModeServer, serverdecoration.OrgKdeKwinServerDecorationModeClient} { | |
| 43 | 43 | select { | |
| 44 | 44 | case got := <-proxy.modes: | |
| 45 | 45 | if got != uint32(want) { | |
| @@ -4,9 +4,9 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/serverdecoration" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/kdedecoration" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | "github.com/bnema/wlturbo" | 10 | "github.com/bnema/wlturbo" | ||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
| @@ -32,14 +32,14 @@ func TestKDEDecorationAcknowledgesMode(t *testing.T) { | |||||
| 32 | proxy := &kdeModeProxy{modes: make(chan uint32, 8)} | 32 | proxy := &kdeModeProxy{modes: make(chan uint32, 8)} | ||
| 33 | proxy.SetID(deco) | 33 | proxy.SetID(deco) | ||
| 34 | registerWireProxy(c, proxy) | 34 | registerWireProxy(c, proxy) | ||
| 35 | - | requestProtocol(t, c, mgr, kdedecoration.OrgKdeKwinServerDecorationManagerRequestCreate, deco, surf) | 35 | + | requestProtocol(t, c, mgr, serverdecoration.OrgKdeKwinServerDecorationManagerRequestCreate, deco, surf) |
| 36 | - | requestProtocol(t, c, deco, kdedecoration.OrgKdeKwinServerDecorationRequestRequestMode, uint32(kdedecoration.OrgKdeKwinServerDecorationModeClient)) | 36 | + | requestProtocol(t, c, deco, serverdecoration.OrgKdeKwinServerDecorationRequestRequestMode, uint32(serverdecoration.OrgKdeKwinServerDecorationModeClient)) |
| 37 | // An undefined mode gets no answer. | 37 | // An undefined mode gets no answer. | ||
| 38 | - | requestProtocol(t, c, deco, kdedecoration.OrgKdeKwinServerDecorationRequestRequestMode, uint32(3)) | 38 | + | requestProtocol(t, c, deco, serverdecoration.OrgKdeKwinServerDecorationRequestRequestMode, uint32(3)) |
| 39 | if err := c.Roundtrip(); err != nil { | 39 | if err := c.Roundtrip(); err != nil { | ||
| 40 | t.Fatal(err) | 40 | t.Fatal(err) | ||
| 41 | } | 41 | } | ||
| 42 | - | for _, want := range []kdedecoration.OrgKdeKwinServerDecorationMode{kdedecoration.OrgKdeKwinServerDecorationModeServer, kdedecoration.OrgKdeKwinServerDecorationModeClient} { | 42 | + | for _, want := range []serverdecoration.OrgKdeKwinServerDecorationMode{serverdecoration.OrgKdeKwinServerDecorationModeServer, serverdecoration.OrgKdeKwinServerDecorationModeClient} { |
| 43 | select { | 43 | select { | ||
| 44 | case got := <-proxy.modes: | 44 | case got := <-proxy.modes: | ||
| 45 | if got != uint32(want) { | 45 | if got != uint32(want) { | ||
M internal/adapters/wayland/dmabuf.go +2 -2
| @@ -6,9 +6,9 @@ import ( | |||
| 6 | 6 | "os" | |
| 7 | 7 | "slices" | |
| 8 | 8 | ||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 9 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | 12 | "github.com/bnema/purego-libwayland/server" | |
| 13 | 13 | "golang.org/x/sys/unix" | |
| 14 | 14 | ) | |
| @@ -6,9 +6,9 @@ import ( | |||||
| 6 | "os" | 6 | "os" | ||
| 7 | "slices" | 7 | "slices" | ||
| 8 | 8 | ||||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 9 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | "github.com/bnema/purego-libwayland/server" | 12 | "github.com/bnema/purego-libwayland/server" | ||
| 13 | "golang.org/x/sys/unix" | 13 | "golang.org/x/sys/unix" | ||
| 14 | ) | 14 | ) | ||
M internal/adapters/wayland/dmabuf_test.go +1 -1
| @@ -6,9 +6,9 @@ import ( | |||
| 6 | 6 | "testing" | |
| 7 | 7 | "time" | |
| 8 | 8 | ||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |
| 9 | 10 | "github.com/bnema/neferwl/internal/logging" | |
| 10 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |
| 12 | 12 | "github.com/bnema/wlturbo" | |
| 13 | 13 | "golang.org/x/sys/unix" | |
| 14 | 14 | ) | |
| @@ -6,9 +6,9 @@ import ( | |||||
| 6 | "testing" | 6 | "testing" | ||
| 7 | "time" | 7 | "time" | ||
| 8 | 8 | ||||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |||
| 9 | "github.com/bnema/neferwl/internal/logging" | 10 | "github.com/bnema/neferwl/internal/logging" | ||
| 10 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |||
| 12 | "github.com/bnema/wlturbo" | 12 | "github.com/bnema/wlturbo" | ||
| 13 | "golang.org/x/sys/unix" | 13 | "golang.org/x/sys/unix" | ||
| 14 | ) | 14 | ) | ||
M internal/adapters/wayland/dmabuf_yuv_test.go +1 -1
| @@ -3,8 +3,8 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "testing" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |
| 6 | 7 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |
| 8 | 8 | "golang.org/x/sys/unix" | |
| 9 | 9 | ) | |
| 10 | 10 | ||
| @@ -3,8 +3,8 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "testing" | 4 | "testing" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 7 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |||
| 8 | "golang.org/x/sys/unix" | 8 | "golang.org/x/sys/unix" | ||
| 9 | ) | 9 | ) | ||
| 10 | 10 | ||||
M internal/adapters/wayland/drmlease.go +1 -1
| @@ -5,8 +5,8 @@ import ( | |||
| 5 | 5 | "os" | |
| 6 | 6 | "slices" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/drmlease" | |
| 8 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/drmlease" | |
| 10 | 10 | "github.com/bnema/purego-libwayland/server" | |
| 11 | 11 | "golang.org/x/sys/unix" | |
| 12 | 12 | ) | |
| @@ -5,8 +5,8 @@ import ( | |||||
| 5 | "os" | 5 | "os" | ||
| 6 | "slices" | 6 | "slices" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/drmlease" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/drmlease" | |||
| 10 | "github.com/bnema/purego-libwayland/server" | 10 | "github.com/bnema/purego-libwayland/server" | ||
| 11 | "golang.org/x/sys/unix" | 11 | "golang.org/x/sys/unix" | ||
| 12 | ) | 12 | ) | ||
M internal/adapters/wayland/drmlease_test.go +1 -1
| @@ -7,9 +7,9 @@ import ( | |||
| 7 | 7 | "testing" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | + | dl "github.com/bnema/go-wayland-bindings/server/drmlease" | |
| 10 | 11 | "github.com/bnema/neferwl/internal/logging" | |
| 11 | 12 | "github.com/bnema/neferwl/internal/ports" | |
| 12 | - | dl "github.com/bnema/purego-libwayland/protocol/drmlease" | |
| 13 | 13 | "github.com/bnema/purego-libwayland/server" | |
| 14 | 14 | "github.com/bnema/wlturbo" | |
| 15 | 15 | "golang.org/x/sys/unix" | |
| @@ -7,9 +7,9 @@ import ( | |||||
| 7 | "testing" | 7 | "testing" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | + | dl "github.com/bnema/go-wayland-bindings/server/drmlease" | |||
| 10 | "github.com/bnema/neferwl/internal/logging" | 11 | "github.com/bnema/neferwl/internal/logging" | ||
| 11 | "github.com/bnema/neferwl/internal/ports" | 12 | "github.com/bnema/neferwl/internal/ports" | ||
| 12 | - | dl "github.com/bnema/purego-libwayland/protocol/drmlease" | |||
| 13 | "github.com/bnema/purego-libwayland/server" | 13 | "github.com/bnema/purego-libwayland/server" | ||
| 14 | "github.com/bnema/wlturbo" | 14 | "github.com/bnema/wlturbo" | ||
| 15 | "golang.org/x/sys/unix" | 15 | "golang.org/x/sys/unix" | ||
M internal/adapters/wayland/exclusion.go +2 -2
| @@ -7,10 +7,10 @@ import ( | |||
| 7 | 7 | "os" | |
| 8 | 8 | "slices" | |
| 9 | 9 | ||
| 10 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | 12 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | |
| 11 | 13 | "github.com/bnema/neferwl/internal/ports" | |
| 12 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 14 | 14 | "github.com/bnema/purego-libwayland/server" | |
| 15 | 15 | ) | |
| 16 | 16 | ||
| @@ -7,10 +7,10 @@ import ( | |||||
| 7 | "os" | 7 | "os" | ||
| 8 | "slices" | 8 | "slices" | ||
| 9 | 9 | ||||
| 10 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 10 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | 12 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | ||
| 11 | "github.com/bnema/neferwl/internal/ports" | 13 | "github.com/bnema/neferwl/internal/ports" | ||
| 12 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 14 | "github.com/bnema/purego-libwayland/server" | 14 | "github.com/bnema/purego-libwayland/server" | ||
| 15 | ) | 15 | ) | ||
| 16 | 16 | ||||
M internal/adapters/wayland/fifo.go +4 -4
| @@ -4,11 +4,11 @@ import ( | |||
| 4 | 4 | "sync" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/committiming" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/contenttype" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/committiming" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/contenttype" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | 12 | "github.com/bnema/purego-libwayland/server" | |
| 13 | 13 | "golang.org/x/sys/unix" | |
| 14 | 14 | ) | |
| @@ -4,11 +4,11 @@ import ( | |||||
| 4 | "sync" | 4 | "sync" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/committiming" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/contenttype" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/committiming" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/contenttype" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | "github.com/bnema/purego-libwayland/server" | 12 | "github.com/bnema/purego-libwayland/server" | ||
| 13 | "golang.org/x/sys/unix" | 13 | "golang.org/x/sys/unix" | ||
| 14 | ) | 14 | ) | ||
M internal/adapters/wayland/fifo_test.go +3 -3
| @@ -4,10 +4,10 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/committiming" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 10 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/committiming" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 11 | 11 | "github.com/bnema/wlturbo" | |
| 12 | 12 | "golang.org/x/sys/unix" | |
| 13 | 13 | ) | |
| @@ -4,10 +4,10 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/committiming" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 10 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/committiming" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 11 | "github.com/bnema/wlturbo" | 11 | "github.com/bnema/wlturbo" | ||
| 12 | "golang.org/x/sys/unix" | 12 | "golang.org/x/sys/unix" | ||
| 13 | ) | 13 | ) | ||
M internal/adapters/wayland/foreigntoplevel.go +2 -2
| @@ -5,9 +5,9 @@ import ( | |||
| 5 | 5 | "encoding/binary" | |
| 6 | 6 | "slices" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 9 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrforeigntoplevelmanagement" | |
| 8 | 10 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrforeigntoplevel" | |
| 11 | 11 | "github.com/bnema/purego-libwayland/server" | |
| 12 | 12 | ) | |
| 13 | 13 | ||
| @@ -5,9 +5,9 @@ import ( | |||||
| 5 | "encoding/binary" | 5 | "encoding/binary" | ||
| 6 | "slices" | 6 | "slices" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 9 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrforeigntoplevelmanagement" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 10 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrforeigntoplevel" | |||
| 11 | "github.com/bnema/purego-libwayland/server" | 11 | "github.com/bnema/purego-libwayland/server" | ||
| 12 | ) | 12 | ) | ||
| 13 | 13 | ||||
M internal/adapters/wayland/foreigntoplevel_test.go +3 -3
| @@ -7,10 +7,10 @@ import ( | |||
| 7 | 7 | "testing" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 11 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrforeigntoplevelmanagement" | |
| 12 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 10 | 13 | "github.com/bnema/neferwl/internal/ports" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrforeigntoplevel" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 14 | 14 | "github.com/bnema/wlturbo" | |
| 15 | 15 | ) | |
| 16 | 16 | ||
| @@ -7,10 +7,10 @@ import ( | |||||
| 7 | "testing" | 7 | "testing" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 11 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrforeigntoplevelmanagement" | |||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 10 | "github.com/bnema/neferwl/internal/ports" | 13 | "github.com/bnema/neferwl/internal/ports" | ||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrforeigntoplevel" | |||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 14 | "github.com/bnema/wlturbo" | 14 | "github.com/bnema/wlturbo" | ||
| 15 | ) | 15 | ) | ||
| 16 | 16 | ||||
M internal/adapters/wayland/frames.go +1 -1
| @@ -9,7 +9,7 @@ import ( | |||
| 9 | 9 | ||
| 10 | 10 | "github.com/bnema/neferwl/internal/ports" | |
| 11 | 11 | ||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 13 | 13 | ) | |
| 14 | 14 | ||
| 15 | 15 | // Frame callbacks (wl_surface.frame) tell a client when to draw its next | |
| @@ -9,7 +9,7 @@ import ( | |||||
| 9 | 9 | ||||
| 10 | "github.com/bnema/neferwl/internal/ports" | 10 | "github.com/bnema/neferwl/internal/ports" | ||
| 11 | 11 | ||||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 13 | ) | 13 | ) | ||
| 14 | 14 | ||||
| 15 | // Frame callbacks (wl_surface.frame) tell a client when to draw its next | 15 | // Frame callbacks (wl_surface.frame) tell a client when to draw its next | ||
M internal/adapters/wayland/frames_test.go +1 -1
| @@ -5,8 +5,8 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | func TestDueFramesAllocations(t *testing.T) { | |
| @@ -5,8 +5,8 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
| 12 | func TestDueFramesAllocations(t *testing.T) { | 12 | func TestDueFramesAllocations(t *testing.T) { | ||
M internal/adapters/wayland/globals.go +1 -1
| @@ -3,8 +3,8 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "os" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | 7 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 8 | 8 | "github.com/bnema/purego-libwayland/server" | |
| 9 | 9 | ) | |
| 10 | 10 | ||
| @@ -3,8 +3,8 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "os" | 4 | "os" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 7 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 8 | "github.com/bnema/purego-libwayland/server" | 8 | "github.com/bnema/purego-libwayland/server" | ||
| 9 | ) | 9 | ) | ||
| 10 | 10 | ||||
M internal/adapters/wayland/idle.go +16 -16
| @@ -3,10 +3,10 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "time" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/extidlenotify" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wlroutputpowermanagement" | |
| 6 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/extidlenotify" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wlroutputpower" | |
| 10 | 10 | "github.com/bnema/purego-libwayland/server" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -28,7 +28,7 @@ type idleNotification struct { | |||
| 28 | 28 | ||
| 29 | 29 | // outputPower is one zwlr_output_power_v1. | |
| 30 | 30 | type outputPower struct { | |
| 31 | - | res *wlroutputpower.ZwlrOutputPowerV1 | |
| 31 | + | res *wlroutputpowermanagement.ZwlrOutputPowerV1 | |
| 32 | 32 | output string | |
| 33 | 33 | } | |
| 34 | 34 | ||
| @@ -38,8 +38,8 @@ func registerIdle(d *server.Display, s *Server) error { | |||
| 38 | 38 | }); err != nil { | |
| 39 | 39 | return err | |
| 40 | 40 | } | |
| 41 | - | return wlroutputpower.NewZwlrOutputPowerManagerV1Global(d, 1, func(c server.Client, v, id uint32) { | |
| 42 | - | _, _ = wlroutputpower.NewZwlrOutputPowerManagerV1(c, int32(v), id, powerManager{s}) | |
| 41 | + | return wlroutputpowermanagement.NewZwlrOutputPowerManagerV1Global(d, 1, func(c server.Client, v, id uint32) { | |
| 42 | + | _, _ = wlroutputpowermanagement.NewZwlrOutputPowerManagerV1(c, int32(v), id, powerManager{s}) | |
| 43 | 43 | }) | |
| 44 | 44 | } | |
| 45 | 45 | ||
| @@ -138,13 +138,13 @@ func (s *Server) syncIdle(wasHeld bool) { | |||
| 138 | 138 | ||
| 139 | 139 | type powerManager struct{ server *Server } | |
| 140 | 140 | ||
| 141 | - | func (powerManager) Destroy(*wlroutputpower.ZwlrOutputPowerManagerV1) {} | |
| 141 | + | func (powerManager) Destroy(*wlroutputpowermanagement.ZwlrOutputPowerManagerV1) {} | |
| 142 | 142 | ||
| 143 | - | func (m powerManager) GetOutputPower(r *wlroutputpower.ZwlrOutputPowerManagerV1, id uint32, wl *wayland.Output) { | |
| 143 | + | func (m powerManager) GetOutputPower(r *wlroutputpowermanagement.ZwlrOutputPowerManagerV1, id uint32, wl *wayland.Output) { | |
| 144 | 144 | s := m.server | |
| 145 | 145 | o := s.outputOf(wl) | |
| 146 | 146 | p := &outputPower{} | |
| 147 | - | res, err := wlroutputpower.NewZwlrOutputPowerV1(r.Client(), r.Version(), id, powerHandler{s, p}) | |
| 147 | + | res, err := wlroutputpowermanagement.NewZwlrOutputPowerV1(r.Client(), r.Version(), id, powerHandler{s, p}) | |
| 148 | 148 | if err != nil { | |
| 149 | 149 | return | |
| 150 | 150 | } | |
| @@ -172,24 +172,24 @@ type powerHandler struct { | |||
| 172 | 172 | p *outputPower | |
| 173 | 173 | } | |
| 174 | 174 | ||
| 175 | - | func (powerHandler) Destroy(*wlroutputpower.ZwlrOutputPowerV1) {} | |
| 175 | + | func (powerHandler) Destroy(*wlroutputpowermanagement.ZwlrOutputPowerV1) {} | |
| 176 | 176 | ||
| 177 | - | func (h powerHandler) SetMode(r *wlroutputpower.ZwlrOutputPowerV1, mode uint32) { | |
| 178 | - | if mode != uint32(wlroutputpower.ZwlrOutputPowerV1ModeOff) && mode != uint32(wlroutputpower.ZwlrOutputPowerV1ModeOn) { | |
| 179 | - | r.PostError(uint32(wlroutputpower.ZwlrOutputPowerV1ErrorInvalidMode), "invalid mode") | |
| 177 | + | func (h powerHandler) SetMode(r *wlroutputpowermanagement.ZwlrOutputPowerV1, mode uint32) { | |
| 178 | + | if mode != uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOff) && mode != uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOn) { | |
| 179 | + | r.PostError(uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ErrorInvalidMode), "invalid mode") | |
| 180 | 180 | return | |
| 181 | 181 | } | |
| 182 | 182 | if h.p.output == "" { | |
| 183 | 183 | return | |
| 184 | 184 | } | |
| 185 | - | h.server.emit(ports.OutputPower{Output: h.p.output, On: mode == uint32(wlroutputpower.ZwlrOutputPowerV1ModeOn)}) | |
| 185 | + | h.server.emit(ports.OutputPower{Output: h.p.output, On: mode == uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOn)}) | |
| 186 | 186 | } | |
| 187 | 187 | ||
| 188 | 188 | func powerMode(on bool) uint32 { | |
| 189 | 189 | if on { | |
| 190 | - | return uint32(wlroutputpower.ZwlrOutputPowerV1ModeOn) | |
| 190 | + | return uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOn) | |
| 191 | 191 | } | |
| 192 | - | return uint32(wlroutputpower.ZwlrOutputPowerV1ModeOff) | |
| 192 | + | return uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOff) | |
| 193 | 193 | } | |
| 194 | 194 | ||
| 195 | 195 | // setOutputsOff applies core's power state: each object of an output | |
| @@ -3,10 +3,10 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "time" | 4 | "time" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/extidlenotify" | |||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wlroutputpowermanagement" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/extidlenotify" | |||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wlroutputpower" | |||
| 10 | "github.com/bnema/purego-libwayland/server" | 10 | "github.com/bnema/purego-libwayland/server" | ||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
| @@ -28,7 +28,7 @@ type idleNotification struct { | |||||
| 28 | 28 | ||||
| 29 | // outputPower is one zwlr_output_power_v1. | 29 | // outputPower is one zwlr_output_power_v1. | ||
| 30 | type outputPower struct { | 30 | type outputPower struct { | ||
| 31 | - | res *wlroutputpower.ZwlrOutputPowerV1 | 31 | + | res *wlroutputpowermanagement.ZwlrOutputPowerV1 |
| 32 | output string | 32 | output string | ||
| 33 | } | 33 | } | ||
| 34 | 34 | ||||
| @@ -38,8 +38,8 @@ func registerIdle(d *server.Display, s *Server) error { | |||||
| 38 | }); err != nil { | 38 | }); err != nil { | ||
| 39 | return err | 39 | return err | ||
| 40 | } | 40 | } | ||
| 41 | - | return wlroutputpower.NewZwlrOutputPowerManagerV1Global(d, 1, func(c server.Client, v, id uint32) { | 41 | + | return wlroutputpowermanagement.NewZwlrOutputPowerManagerV1Global(d, 1, func(c server.Client, v, id uint32) { |
| 42 | - | _, _ = wlroutputpower.NewZwlrOutputPowerManagerV1(c, int32(v), id, powerManager{s}) | 42 | + | _, _ = wlroutputpowermanagement.NewZwlrOutputPowerManagerV1(c, int32(v), id, powerManager{s}) |
| 43 | }) | 43 | }) | ||
| 44 | } | 44 | } | ||
| 45 | 45 | ||||
| @@ -138,13 +138,13 @@ func (s *Server) syncIdle(wasHeld bool) { | |||||
| 138 | 138 | ||||
| 139 | type powerManager struct{ server *Server } | 139 | type powerManager struct{ server *Server } | ||
| 140 | 140 | ||||
| 141 | - | func (powerManager) Destroy(*wlroutputpower.ZwlrOutputPowerManagerV1) {} | 141 | + | func (powerManager) Destroy(*wlroutputpowermanagement.ZwlrOutputPowerManagerV1) {} |
| 142 | 142 | ||||
| 143 | - | func (m powerManager) GetOutputPower(r *wlroutputpower.ZwlrOutputPowerManagerV1, id uint32, wl *wayland.Output) { | 143 | + | func (m powerManager) GetOutputPower(r *wlroutputpowermanagement.ZwlrOutputPowerManagerV1, id uint32, wl *wayland.Output) { |
| 144 | s := m.server | 144 | s := m.server | ||
| 145 | o := s.outputOf(wl) | 145 | o := s.outputOf(wl) | ||
| 146 | p := &outputPower{} | 146 | p := &outputPower{} | ||
| 147 | - | res, err := wlroutputpower.NewZwlrOutputPowerV1(r.Client(), r.Version(), id, powerHandler{s, p}) | 147 | + | res, err := wlroutputpowermanagement.NewZwlrOutputPowerV1(r.Client(), r.Version(), id, powerHandler{s, p}) |
| 148 | if err != nil { | 148 | if err != nil { | ||
| 149 | return | 149 | return | ||
| 150 | } | 150 | } | ||
| @@ -172,24 +172,24 @@ type powerHandler struct { | |||||
| 172 | p *outputPower | 172 | p *outputPower | ||
| 173 | } | 173 | } | ||
| 174 | 174 | ||||
| 175 | - | func (powerHandler) Destroy(*wlroutputpower.ZwlrOutputPowerV1) {} | 175 | + | func (powerHandler) Destroy(*wlroutputpowermanagement.ZwlrOutputPowerV1) {} |
| 176 | 176 | ||||
| 177 | - | func (h powerHandler) SetMode(r *wlroutputpower.ZwlrOutputPowerV1, mode uint32) { | 177 | + | func (h powerHandler) SetMode(r *wlroutputpowermanagement.ZwlrOutputPowerV1, mode uint32) { |
| 178 | - | if mode != uint32(wlroutputpower.ZwlrOutputPowerV1ModeOff) && mode != uint32(wlroutputpower.ZwlrOutputPowerV1ModeOn) { | 178 | + | if mode != uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOff) && mode != uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOn) { |
| 179 | - | r.PostError(uint32(wlroutputpower.ZwlrOutputPowerV1ErrorInvalidMode), "invalid mode") | 179 | + | r.PostError(uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ErrorInvalidMode), "invalid mode") |
| 180 | return | 180 | return | ||
| 181 | } | 181 | } | ||
| 182 | if h.p.output == "" { | 182 | if h.p.output == "" { | ||
| 183 | return | 183 | return | ||
| 184 | } | 184 | } | ||
| 185 | - | h.server.emit(ports.OutputPower{Output: h.p.output, On: mode == uint32(wlroutputpower.ZwlrOutputPowerV1ModeOn)}) | 185 | + | h.server.emit(ports.OutputPower{Output: h.p.output, On: mode == uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOn)}) |
| 186 | } | 186 | } | ||
| 187 | 187 | ||||
| 188 | func powerMode(on bool) uint32 { | 188 | func powerMode(on bool) uint32 { | ||
| 189 | if on { | 189 | if on { | ||
| 190 | - | return uint32(wlroutputpower.ZwlrOutputPowerV1ModeOn) | 190 | + | return uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOn) |
| 191 | } | 191 | } | ||
| 192 | - | return uint32(wlroutputpower.ZwlrOutputPowerV1ModeOff) | 192 | + | return uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOff) |
| 193 | } | 193 | } | ||
| 194 | 194 | ||||
| 195 | // setOutputsOff applies core's power state: each object of an output | 195 | // setOutputsOff applies core's power state: each object of an output | ||
M internal/adapters/wayland/idle_test.go +11 -11
| @@ -5,12 +5,12 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/extidlenotify" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/idleinhibit" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wlroutputpowermanagement" | |
| 8 | 11 | "github.com/bnema/neferwl/internal/logging" | |
| 9 | 12 | portsmocks "github.com/bnema/neferwl/internal/mocks/ports" | |
| 10 | 13 | "github.com/bnema/neferwl/internal/ports" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/extidlenotify" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/idleinhibit" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wlroutputpower" | |
| 14 | 14 | "github.com/bnema/wlturbo" | |
| 15 | 15 | "github.com/stretchr/testify/mock" | |
| 16 | 16 | ) | |
| @@ -131,14 +131,14 @@ func TestOutputPower(t *testing.T) { | |||
| 131 | 131 | mgr := bindProtocol(t, c, "zwlr_output_power_manager_v1") | |
| 132 | 132 | registerProtocol(t, c, mgr) | |
| 133 | 133 | id, p := newEventProxy(c) | |
| 134 | - | requestProtocol(t, c, mgr, wlroutputpower.ZwlrOutputPowerManagerV1RequestGetOutputPower, id, output) | |
| 135 | - | modeEv, failed := uint32(wlroutputpower.ZwlrOutputPowerV1EventMode), uint32(wlroutputpower.ZwlrOutputPowerV1EventFailed) | |
| 136 | - | on, off := uint32(wlroutputpower.ZwlrOutputPowerV1ModeOn), uint32(wlroutputpower.ZwlrOutputPowerV1ModeOff) | |
| 134 | + | requestProtocol(t, c, mgr, wlroutputpowermanagement.ZwlrOutputPowerManagerV1RequestGetOutputPower, id, output) | |
| 135 | + | modeEv, failed := uint32(wlroutputpowermanagement.ZwlrOutputPowerV1EventMode), uint32(wlroutputpowermanagement.ZwlrOutputPowerV1EventFailed) | |
| 136 | + | on, off := uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOn), uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOff) | |
| 137 | 137 | if e := p.next(t, c, 2*time.Second); e != [2]uint32{modeEv, on} { | |
| 138 | 138 | t.Fatalf("initial %v", e) | |
| 139 | 139 | } | |
| 140 | 140 | name := testOutputs[0].Info.Name | |
| 141 | - | requestProtocol(t, c, id, wlroutputpower.ZwlrOutputPowerV1RequestSetMode, off) | |
| 141 | + | requestProtocol(t, c, id, wlroutputpowermanagement.ZwlrOutputPowerV1RequestSetMode, off) | |
| 142 | 142 | if v := clientEvent[ports.OutputPower](t, events); v != (ports.OutputPower{Output: name, On: false}) { | |
| 143 | 143 | t.Fatal(v) | |
| 144 | 144 | } | |
| @@ -160,7 +160,7 @@ func TestOutputPower(t *testing.T) { | |||
| 160 | 160 | } | |
| 161 | 161 | // Back with the same name: the failed object controls nothing. | |
| 162 | 162 | commands <- ports.SetOutputs{Outputs: testOutputs} | |
| 163 | - | requestProtocol(t, c, id, wlroutputpower.ZwlrOutputPowerV1RequestSetMode, off) | |
| 163 | + | requestProtocol(t, c, id, wlroutputpowermanagement.ZwlrOutputPowerV1RequestSetMode, off) | |
| 164 | 164 | if err := c.Roundtrip(); err != nil { | |
| 165 | 165 | t.Fatal(err) | |
| 166 | 166 | } | |
| @@ -258,7 +258,7 @@ func TestOutputPowerInvalidMode(t *testing.T) { | |||
| 258 | 258 | mgr := bindProtocol(t, c, "zwlr_output_power_manager_v1") | |
| 259 | 259 | id := c.AllocateID() | |
| 260 | 260 | registerProtocol(t, c, id) | |
| 261 | - | requestProtocol(t, c, mgr, wlroutputpower.ZwlrOutputPowerManagerV1RequestGetOutputPower, id, output) | |
| 262 | - | requestProtocol(t, c, id, wlroutputpower.ZwlrOutputPowerV1RequestSetMode, uint32(7)) | |
| 263 | - | expectProtocolError(t, c, id, uint32(wlroutputpower.ZwlrOutputPowerV1ErrorInvalidMode)) | |
| 261 | + | requestProtocol(t, c, mgr, wlroutputpowermanagement.ZwlrOutputPowerManagerV1RequestGetOutputPower, id, output) | |
| 262 | + | requestProtocol(t, c, id, wlroutputpowermanagement.ZwlrOutputPowerV1RequestSetMode, uint32(7)) | |
| 263 | + | expectProtocolError(t, c, id, uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ErrorInvalidMode)) | |
| 264 | 264 | } | |
| @@ -5,12 +5,12 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/extidlenotify" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/idleinhibit" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wlroutputpowermanagement" | |||
| 8 | "github.com/bnema/neferwl/internal/logging" | 11 | "github.com/bnema/neferwl/internal/logging" | ||
| 9 | portsmocks "github.com/bnema/neferwl/internal/mocks/ports" | 12 | portsmocks "github.com/bnema/neferwl/internal/mocks/ports" | ||
| 10 | "github.com/bnema/neferwl/internal/ports" | 13 | "github.com/bnema/neferwl/internal/ports" | ||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/extidlenotify" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/idleinhibit" | |||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wlroutputpower" | |||
| 14 | "github.com/bnema/wlturbo" | 14 | "github.com/bnema/wlturbo" | ||
| 15 | "github.com/stretchr/testify/mock" | 15 | "github.com/stretchr/testify/mock" | ||
| 16 | ) | 16 | ) | ||
| @@ -131,14 +131,14 @@ func TestOutputPower(t *testing.T) { | |||||
| 131 | mgr := bindProtocol(t, c, "zwlr_output_power_manager_v1") | 131 | mgr := bindProtocol(t, c, "zwlr_output_power_manager_v1") | ||
| 132 | registerProtocol(t, c, mgr) | 132 | registerProtocol(t, c, mgr) | ||
| 133 | id, p := newEventProxy(c) | 133 | id, p := newEventProxy(c) | ||
| 134 | - | requestProtocol(t, c, mgr, wlroutputpower.ZwlrOutputPowerManagerV1RequestGetOutputPower, id, output) | 134 | + | requestProtocol(t, c, mgr, wlroutputpowermanagement.ZwlrOutputPowerManagerV1RequestGetOutputPower, id, output) |
| 135 | - | modeEv, failed := uint32(wlroutputpower.ZwlrOutputPowerV1EventMode), uint32(wlroutputpower.ZwlrOutputPowerV1EventFailed) | 135 | + | modeEv, failed := uint32(wlroutputpowermanagement.ZwlrOutputPowerV1EventMode), uint32(wlroutputpowermanagement.ZwlrOutputPowerV1EventFailed) |
| 136 | - | on, off := uint32(wlroutputpower.ZwlrOutputPowerV1ModeOn), uint32(wlroutputpower.ZwlrOutputPowerV1ModeOff) | 136 | + | on, off := uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOn), uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ModeOff) |
| 137 | if e := p.next(t, c, 2*time.Second); e != [2]uint32{modeEv, on} { | 137 | if e := p.next(t, c, 2*time.Second); e != [2]uint32{modeEv, on} { | ||
| 138 | t.Fatalf("initial %v", e) | 138 | t.Fatalf("initial %v", e) | ||
| 139 | } | 139 | } | ||
| 140 | name := testOutputs[0].Info.Name | 140 | name := testOutputs[0].Info.Name | ||
| 141 | - | requestProtocol(t, c, id, wlroutputpower.ZwlrOutputPowerV1RequestSetMode, off) | 141 | + | requestProtocol(t, c, id, wlroutputpowermanagement.ZwlrOutputPowerV1RequestSetMode, off) |
| 142 | if v := clientEvent[ports.OutputPower](t, events); v != (ports.OutputPower{Output: name, On: false}) { | 142 | if v := clientEvent[ports.OutputPower](t, events); v != (ports.OutputPower{Output: name, On: false}) { | ||
| 143 | t.Fatal(v) | 143 | t.Fatal(v) | ||
| 144 | } | 144 | } | ||
| @@ -160,7 +160,7 @@ func TestOutputPower(t *testing.T) { | |||||
| 160 | } | 160 | } | ||
| 161 | // Back with the same name: the failed object controls nothing. | 161 | // Back with the same name: the failed object controls nothing. | ||
| 162 | commands <- ports.SetOutputs{Outputs: testOutputs} | 162 | commands <- ports.SetOutputs{Outputs: testOutputs} | ||
| 163 | - | requestProtocol(t, c, id, wlroutputpower.ZwlrOutputPowerV1RequestSetMode, off) | 163 | + | requestProtocol(t, c, id, wlroutputpowermanagement.ZwlrOutputPowerV1RequestSetMode, off) |
| 164 | if err := c.Roundtrip(); err != nil { | 164 | if err := c.Roundtrip(); err != nil { | ||
| 165 | t.Fatal(err) | 165 | t.Fatal(err) | ||
| 166 | } | 166 | } | ||
| @@ -258,7 +258,7 @@ func TestOutputPowerInvalidMode(t *testing.T) { | |||||
| 258 | mgr := bindProtocol(t, c, "zwlr_output_power_manager_v1") | 258 | mgr := bindProtocol(t, c, "zwlr_output_power_manager_v1") | ||
| 259 | id := c.AllocateID() | 259 | id := c.AllocateID() | ||
| 260 | registerProtocol(t, c, id) | 260 | registerProtocol(t, c, id) | ||
| 261 | - | requestProtocol(t, c, mgr, wlroutputpower.ZwlrOutputPowerManagerV1RequestGetOutputPower, id, output) | 261 | + | requestProtocol(t, c, mgr, wlroutputpowermanagement.ZwlrOutputPowerManagerV1RequestGetOutputPower, id, output) |
| 262 | - | requestProtocol(t, c, id, wlroutputpower.ZwlrOutputPowerV1RequestSetMode, uint32(7)) | 262 | + | requestProtocol(t, c, id, wlroutputpowermanagement.ZwlrOutputPowerV1RequestSetMode, uint32(7)) |
| 263 | - | expectProtocolError(t, c, id, uint32(wlroutputpower.ZwlrOutputPowerV1ErrorInvalidMode)) | 263 | + | expectProtocolError(t, c, id, uint32(wlroutputpowermanagement.ZwlrOutputPowerV1ErrorInvalidMode)) |
| 264 | } | 264 | } | ||
M internal/adapters/wayland/imagecapture/gen.sh +4 -8
| @@ -1,12 +1,8 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | - | # Regenerates imagecapture.go from neferwl-image-capture-v1.xml with the wlgen | |
| 3 | - | # of the purego-libwayland module in use (offline: go.work or the module cache). | |
| 2 | + | # Regenerates imagecapture.go from neferwl-image-capture-v1.xml with the wlbgen | |
| 3 | + | # of the go-wayland-bindings module in use (offline: go.work or the module cache). | |
| 4 | 4 | set -eu | |
| 5 | 5 | cd "$(dirname "$0")" | |
| 6 | - | mod=$(go list -m -f '{{.Dir}}' github.com/bnema/purego-libwayland) | |
| 7 | - | go run github.com/bnema/purego-libwayland/cmd/wlgen -package imagecapture -out imagecapture.go \ | |
| 8 | - | -import wayland=github.com/bnema/purego-libwayland/protocol/wayland -import-xml wayland="$mod/protocols/wayland.xml" \ | |
| 9 | - | -import extworkspace=github.com/bnema/purego-libwayland/protocol/extworkspace -import-xml extworkspace="$mod/protocols/ext-workspace-v1.xml" \ | |
| 10 | - | -import extimagecapturesource=github.com/bnema/purego-libwayland/protocol/extimagecapturesource -import-xml extimagecapturesource="$mod/protocols/ext-image-capture-source-v1.xml" \ | |
| 11 | - | -import extimagecopycapture=github.com/bnema/purego-libwayland/protocol/extimagecopycapture -import-xml extimagecopycapture="$mod/protocols/ext-image-copy-capture-v1.xml" \ | |
| 6 | + | go run github.com/bnema/go-wayland-bindings/cmd/wlbgen -side server \ | |
| 7 | + | -package imagecapture -out imagecapture.go \ | |
| 12 | 8 | neferwl-image-capture-v1.xml | |
| @@ -1,12 +1,8 @@ | |||||
| 1 | #!/bin/sh | 1 | #!/bin/sh | ||
| 2 | - | # Regenerates imagecapture.go from neferwl-image-capture-v1.xml with the wlgen | 2 | + | # Regenerates imagecapture.go from neferwl-image-capture-v1.xml with the wlbgen |
| 3 | - | # of the purego-libwayland module in use (offline: go.work or the module cache). | 3 | + | # of the go-wayland-bindings module in use (offline: go.work or the module cache). |
| 4 | set -eu | 4 | set -eu | ||
| 5 | cd "$(dirname "$0")" | 5 | cd "$(dirname "$0")" | ||
| 6 | - | mod=$(go list -m -f '{{.Dir}}' github.com/bnema/purego-libwayland) | 6 | + | go run github.com/bnema/go-wayland-bindings/cmd/wlbgen -side server \ |
| 7 | - | go run github.com/bnema/purego-libwayland/cmd/wlgen -package imagecapture -out imagecapture.go \ | 7 | + | -package imagecapture -out imagecapture.go \ |
| 8 | - | -import wayland=github.com/bnema/purego-libwayland/protocol/wayland -import-xml wayland="$mod/protocols/wayland.xml" \ | |||
| 9 | - | -import extworkspace=github.com/bnema/purego-libwayland/protocol/extworkspace -import-xml extworkspace="$mod/protocols/ext-workspace-v1.xml" \ | |||
| 10 | - | -import extimagecapturesource=github.com/bnema/purego-libwayland/protocol/extimagecapturesource -import-xml extimagecapturesource="$mod/protocols/ext-image-capture-source-v1.xml" \ | |||
| 11 | - | -import extimagecopycapture=github.com/bnema/purego-libwayland/protocol/extimagecopycapture -import-xml extimagecopycapture="$mod/protocols/ext-image-copy-capture-v1.xml" \ | |||
| 12 | neferwl-image-capture-v1.xml | 8 | neferwl-image-capture-v1.xml | ||
M internal/adapters/wayland/imagecapture/imagecapture.go +10 -5
| @@ -1,12 +1,17 @@ | |||
| 1 | - | // Code generated by wlgen; DO NOT EDIT. | |
| 1 | + | // Code generated by wlbgen; DO NOT EDIT. | |
| 2 | + | ||
| 3 | + | // Upstream protocol copyright and license: | |
| 4 | + | // neferwl private protocol. No stability promise beyond the version of the | |
| 5 | + | // interface. | |
| 6 | + | ||
| 2 | 7 | package imagecapture | |
| 3 | 8 | ||
| 4 | 9 | import ( | |
| 5 | 10 | "fmt" | |
| 6 | - | extimagecapturesource "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |
| 7 | - | extimagecopycapture "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |
| 8 | - | extworkspace "github.com/bnema/purego-libwayland/protocol/extworkspace" | |
| 9 | - | wayland "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 11 | + | extimagecapturesource "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |
| 12 | + | extimagecopycapture "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |
| 13 | + | extworkspace "github.com/bnema/go-wayland-bindings/server/extworkspace" | |
| 14 | + | wayland "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | 15 | "github.com/bnema/purego-libwayland/server" | |
| 11 | 16 | "runtime" | |
| 12 | 17 | ) | |
| @@ -1,12 +1,17 @@ | |||||
| 1 | - | // Code generated by wlgen; DO NOT EDIT. | 1 | + | // Code generated by wlbgen; DO NOT EDIT. |
| 2 | + | ||||
| 3 | + | // Upstream protocol copyright and license: | |||
| 4 | + | // neferwl private protocol. No stability promise beyond the version of the | |||
| 5 | + | // interface. | |||
| 6 | + | ||||
| 2 | package imagecapture | 7 | package imagecapture | ||
| 3 | 8 | ||||
| 4 | import ( | 9 | import ( | ||
| 5 | "fmt" | 10 | "fmt" | ||
| 6 | - | extimagecapturesource "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | 11 | + | extimagecapturesource "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" |
| 7 | - | extimagecopycapture "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | 12 | + | extimagecopycapture "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" |
| 8 | - | extworkspace "github.com/bnema/purego-libwayland/protocol/extworkspace" | 13 | + | extworkspace "github.com/bnema/go-wayland-bindings/server/extworkspace" |
| 9 | - | wayland "github.com/bnema/purego-libwayland/protocol/wayland" | 14 | + | wayland "github.com/bnema/go-wayland-bindings/server/wayland" |
| 10 | "github.com/bnema/purego-libwayland/server" | 15 | "github.com/bnema/purego-libwayland/server" | ||
| 11 | "runtime" | 16 | "runtime" | ||
| 12 | ) | 17 | ) | ||
M internal/adapters/wayland/imagecapture_test.go +6 -6
| @@ -8,15 +8,15 @@ import ( | |||
| 8 | 8 | "testing" | |
| 9 | 9 | "time" | |
| 10 | 10 | ||
| 11 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |
| 12 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |
| 13 | + | extws "github.com/bnema/go-wayland-bindings/server/extworkspace" | |
| 14 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 15 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |
| 16 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |
| 11 | 17 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | |
| 12 | 18 | "github.com/bnema/neferwl/internal/logging" | |
| 13 | 19 | "github.com/bnema/neferwl/internal/ports" | |
| 14 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |
| 15 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |
| 16 | - | extws "github.com/bnema/purego-libwayland/protocol/extworkspace" | |
| 17 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 18 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |
| 19 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |
| 20 | 20 | "github.com/bnema/purego-libwayland/server" | |
| 21 | 21 | "github.com/bnema/wlturbo" | |
| 22 | 22 | "golang.org/x/sys/unix" | |
| @@ -8,15 +8,15 @@ import ( | |||||
| 8 | "testing" | 8 | "testing" | ||
| 9 | "time" | 9 | "time" | ||
| 10 | 10 | ||||
| 11 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |||
| 12 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |||
| 13 | + | extws "github.com/bnema/go-wayland-bindings/server/extworkspace" | |||
| 14 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 15 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |||
| 16 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |||
| 11 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | 17 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | ||
| 12 | "github.com/bnema/neferwl/internal/logging" | 18 | "github.com/bnema/neferwl/internal/logging" | ||
| 13 | "github.com/bnema/neferwl/internal/ports" | 19 | "github.com/bnema/neferwl/internal/ports" | ||
| 14 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |||
| 15 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |||
| 16 | - | extws "github.com/bnema/purego-libwayland/protocol/extworkspace" | |||
| 17 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 18 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |||
| 19 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |||
| 20 | "github.com/bnema/purego-libwayland/server" | 20 | "github.com/bnema/purego-libwayland/server" | ||
| 21 | "github.com/bnema/wlturbo" | 21 | "github.com/bnema/wlturbo" | ||
| 22 | "golang.org/x/sys/unix" | 22 | "golang.org/x/sys/unix" | ||
M internal/adapters/wayland/imagecopy.go +4 -4
| @@ -4,12 +4,12 @@ import ( | |||
| 4 | 4 | "image" | |
| 5 | 5 | "math" | |
| 6 | 6 | ||
| 7 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |
| 8 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |
| 9 | + | extworkspace "github.com/bnema/go-wayland-bindings/server/extworkspace" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 11 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | |
| 8 | 12 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |
| 10 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |
| 11 | - | extworkspace "github.com/bnema/purego-libwayland/protocol/extworkspace" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 13 | 13 | "github.com/bnema/purego-libwayland/server" | |
| 14 | 14 | ) | |
| 15 | 15 | ||
| @@ -4,12 +4,12 @@ import ( | |||||
| 4 | "image" | 4 | "image" | ||
| 5 | "math" | 5 | "math" | ||
| 6 | 6 | ||||
| 7 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |||
| 8 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |||
| 9 | + | extworkspace "github.com/bnema/go-wayland-bindings/server/extworkspace" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | 11 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | ||
| 8 | "github.com/bnema/neferwl/internal/ports" | 12 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |||
| 10 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |||
| 11 | - | extworkspace "github.com/bnema/purego-libwayland/protocol/extworkspace" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 13 | "github.com/bnema/purego-libwayland/server" | 13 | "github.com/bnema/purego-libwayland/server" | ||
| 14 | ) | 14 | ) | ||
| 15 | 15 | ||||
M internal/adapters/wayland/inhibit.go +3 -3
| @@ -1,10 +1,10 @@ | |||
| 1 | 1 | package wayland | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | + | "github.com/bnema/go-wayland-bindings/server/idleinhibit" | |
| 5 | + | "github.com/bnema/go-wayland-bindings/server/keyboardshortcutsinhibit" | |
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 4 | 7 | "github.com/bnema/neferwl/internal/ports" | |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/idleinhibit" | |
| 6 | - | "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 8 | 8 | "github.com/bnema/purego-libwayland/server" | |
| 9 | 9 | ) | |
| 10 | 10 | ||
| @@ -1,10 +1,10 @@ | |||||
| 1 | package wayland | 1 | package wayland | ||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | + | "github.com/bnema/go-wayland-bindings/server/idleinhibit" | |||
| 5 | + | "github.com/bnema/go-wayland-bindings/server/keyboardshortcutsinhibit" | |||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 4 | "github.com/bnema/neferwl/internal/ports" | 7 | "github.com/bnema/neferwl/internal/ports" | ||
| 5 | - | "github.com/bnema/purego-libwayland/protocol/idleinhibit" | |||
| 6 | - | "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit" | |||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 8 | "github.com/bnema/purego-libwayland/server" | 8 | "github.com/bnema/purego-libwayland/server" | ||
| 9 | ) | 9 | ) | ||
| 10 | 10 | ||||
M internal/adapters/wayland/inhibit_test.go +2 -2
| @@ -4,9 +4,9 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/idleinhibit" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/keyboardshortcutsinhibit" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/idleinhibit" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit" | |
| 10 | 10 | "github.com/bnema/wlturbo" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -4,9 +4,9 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/idleinhibit" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/keyboardshortcutsinhibit" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/idleinhibit" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit" | |||
| 10 | "github.com/bnema/wlturbo" | 10 | "github.com/bnema/wlturbo" | ||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
M internal/adapters/wayland/input_region.go +1 -1
| @@ -3,8 +3,8 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "slices" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | 7 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| 10 | 10 | // intersectRect returns the overlap of two half-open rectangles. | |
| @@ -3,8 +3,8 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "slices" | 4 | "slices" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 7 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 8 | ) | 8 | ) | ||
| 9 | 9 | ||||
| 10 | // intersectRect returns the overlap of two half-open rectangles. | 10 | // intersectRect returns the overlap of two half-open rectangles. | ||
M internal/adapters/wayland/input_region_test.go +4 -4
| @@ -5,11 +5,11 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/pointerconstraints" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 8 | 12 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/pointerconstraints" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 13 | 13 | "golang.org/x/sys/unix" | |
| 14 | 14 | ) | |
| 15 | 15 | ||
| @@ -5,11 +5,11 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/pointerconstraints" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 12 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/pointerconstraints" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 13 | "golang.org/x/sys/unix" | 13 | "golang.org/x/sys/unix" | ||
| 14 | ) | 14 | ) | ||
| 15 | 15 | ||||
M internal/adapters/wayland/keyboard_test.go +1 -1
| @@ -10,9 +10,9 @@ import ( | |||
| 10 | 10 | "testing" | |
| 11 | 11 | "time" | |
| 12 | 12 | ||
| 13 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 13 | 14 | "github.com/bnema/neferwl/internal/logging" | |
| 14 | 15 | "github.com/bnema/neferwl/internal/ports" | |
| 15 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 16 | 16 | "github.com/bnema/wlturbo" | |
| 17 | 17 | "golang.org/x/sys/unix" | |
| 18 | 18 | ) | |
| @@ -10,9 +10,9 @@ import ( | |||||
| 10 | "testing" | 10 | "testing" | ||
| 11 | "time" | 11 | "time" | ||
| 12 | 12 | ||||
| 13 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 13 | "github.com/bnema/neferwl/internal/logging" | 14 | "github.com/bnema/neferwl/internal/logging" | ||
| 14 | "github.com/bnema/neferwl/internal/ports" | 15 | "github.com/bnema/neferwl/internal/ports" | ||
| 15 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 16 | "github.com/bnema/wlturbo" | 16 | "github.com/bnema/wlturbo" | ||
| 17 | "golang.org/x/sys/unix" | 17 | "golang.org/x/sys/unix" | ||
| 18 | ) | 18 | ) | ||
M internal/adapters/wayland/layer.go +3 -3
| @@ -3,10 +3,10 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "sort" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 6 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 10 | 10 | "github.com/bnema/purego-libwayland/server" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -3,10 +3,10 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "sort" | 4 | "sort" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 10 | "github.com/bnema/purego-libwayland/server" | 10 | "github.com/bnema/purego-libwayland/server" | ||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
M internal/adapters/wayland/layer_scale_test.go +3 -3
| @@ -3,10 +3,10 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "testing" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/fractionalscale" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |
| 6 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/fractionalscale" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |
| 10 | 10 | "github.com/bnema/wlturbo" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -3,10 +3,10 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "testing" | 4 | "testing" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/fractionalscale" | |||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/fractionalscale" | |||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |||
| 10 | "github.com/bnema/wlturbo" | 10 | "github.com/bnema/wlturbo" | ||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
M internal/adapters/wayland/layer_test.go +3 -3
| @@ -7,10 +7,10 @@ import ( | |||
| 7 | 7 | "testing" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |
| 12 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 10 | 13 | "github.com/bnema/neferwl/internal/ports" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 14 | 14 | "github.com/bnema/wlturbo" | |
| 15 | 15 | "golang.org/x/sys/unix" | |
| 16 | 16 | ) | |
| @@ -7,10 +7,10 @@ import ( | |||||
| 7 | "testing" | 7 | "testing" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 10 | "github.com/bnema/neferwl/internal/ports" | 13 | "github.com/bnema/neferwl/internal/ports" | ||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 14 | "github.com/bnema/wlturbo" | 14 | "github.com/bnema/wlturbo" | ||
| 15 | "golang.org/x/sys/unix" | 15 | "golang.org/x/sys/unix" | ||
| 16 | ) | 16 | ) | ||
M internal/adapters/wayland/move_request_test.go +2 -2
| @@ -6,8 +6,8 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | 8 | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 11 | 11 | "github.com/bnema/wlturbo" | |
| 12 | 12 | "golang.org/x/sys/unix" | |
| 13 | 13 | ) | |
| @@ -6,8 +6,8 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/bnema/neferwl/internal/ports" | 7 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | 8 | ||||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | 10 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" |
| 11 | "github.com/bnema/wlturbo" | 11 | "github.com/bnema/wlturbo" | ||
| 12 | "golang.org/x/sys/unix" | 12 | "golang.org/x/sys/unix" | ||
| 13 | ) | 13 | ) | ||
M internal/adapters/wayland/outputconfiguration.go +1 -1
| @@ -4,8 +4,8 @@ import ( | |||
| 4 | 4 | "image" | |
| 5 | 5 | "math" | |
| 6 | 6 | ||
| 7 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |
| 7 | 8 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |
| 9 | 9 | "github.com/bnema/purego-libwayland/server" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| @@ -4,8 +4,8 @@ import ( | |||||
| 4 | "image" | 4 | "image" | ||
| 5 | "math" | 5 | "math" | ||
| 6 | 6 | ||||
| 7 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 8 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |||
| 9 | "github.com/bnema/purego-libwayland/server" | 9 | "github.com/bnema/purego-libwayland/server" | ||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
M internal/adapters/wayland/outputmanagement.go +1 -1
| @@ -4,8 +4,8 @@ import ( | |||
| 4 | 4 | "reflect" | |
| 5 | 5 | "strings" | |
| 6 | 6 | ||
| 7 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |
| 7 | 8 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |
| 9 | 9 | "github.com/bnema/purego-libwayland/server" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| @@ -4,8 +4,8 @@ import ( | |||||
| 4 | "reflect" | 4 | "reflect" | ||
| 5 | "strings" | 5 | "strings" | ||
| 6 | 6 | ||||
| 7 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 8 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |||
| 9 | "github.com/bnema/purego-libwayland/server" | 9 | "github.com/bnema/purego-libwayland/server" | ||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
M internal/adapters/wayland/outputmanagement_test.go +1 -1
| @@ -5,9 +5,9 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |
| 8 | 9 | "github.com/bnema/neferwl/internal/logging" | |
| 9 | 10 | "github.com/bnema/neferwl/internal/ports" | |
| 10 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |
| 11 | 11 | "github.com/bnema/wlturbo" | |
| 12 | 12 | ) | |
| 13 | 13 | ||
| @@ -5,9 +5,9 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |||
| 8 | "github.com/bnema/neferwl/internal/logging" | 9 | "github.com/bnema/neferwl/internal/logging" | ||
| 9 | "github.com/bnema/neferwl/internal/ports" | 10 | "github.com/bnema/neferwl/internal/ports" | ||
| 10 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |||
| 11 | "github.com/bnema/wlturbo" | 11 | "github.com/bnema/wlturbo" | ||
| 12 | ) | 12 | ) | ||
| 13 | 13 | ||||
M internal/adapters/wayland/outputs.go +2 -2
| @@ -5,9 +5,9 @@ import ( | |||
| 5 | 5 | "slices" | |
| 6 | 6 | "strings" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/xdgoutput" | |
| 8 | 10 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/xdgoutput" | |
| 11 | 11 | "github.com/bnema/purego-libwayland/server" | |
| 12 | 12 | ) | |
| 13 | 13 | ||
| @@ -5,9 +5,9 @@ import ( | |||||
| 5 | "slices" | 5 | "slices" | ||
| 6 | "strings" | 6 | "strings" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/xdgoutput" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 10 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/xdgoutput" | |||
| 11 | "github.com/bnema/purego-libwayland/server" | 11 | "github.com/bnema/purego-libwayland/server" | ||
| 12 | ) | 12 | ) | ||
| 13 | 13 | ||||
M internal/adapters/wayland/outputs_test.go +2 -2
| @@ -4,9 +4,9 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |
| 10 | 10 | "github.com/bnema/wlturbo" | |
| 11 | 11 | ) | |
| 12 | 12 | ||
| @@ -4,9 +4,9 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |||
| 10 | "github.com/bnema/wlturbo" | 10 | "github.com/bnema/wlturbo" | ||
| 11 | ) | 11 | ) | ||
| 12 | 12 | ||||
M internal/adapters/wayland/popup.go +2 -2
| @@ -1,9 +1,9 @@ | |||
| 1 | 1 | package wayland | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 5 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 4 | 6 | "github.com/bnema/neferwl/internal/ports" | |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 6 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 7 | 7 | "github.com/bnema/purego-libwayland/server" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| @@ -1,9 +1,9 @@ | |||||
| 1 | package wayland | 1 | package wayland | ||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 5 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 4 | "github.com/bnema/neferwl/internal/ports" | 6 | "github.com/bnema/neferwl/internal/ports" | ||
| 5 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 6 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 7 | "github.com/bnema/purego-libwayland/server" | 7 | "github.com/bnema/purego-libwayland/server" | ||
| 8 | ) | 8 | ) | ||
| 9 | 9 | ||||
M internal/adapters/wayland/presentation.go +2 -2
| @@ -3,9 +3,9 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "time" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | 8 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 9 | 9 | "github.com/bnema/purego-libwayland/server" | |
| 10 | 10 | "golang.org/x/sys/unix" | |
| 11 | 11 | ) | |
| @@ -3,9 +3,9 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "time" | 4 | "time" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" | |||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 8 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | |||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 9 | "github.com/bnema/purego-libwayland/server" | 9 | "github.com/bnema/purego-libwayland/server" | ||
| 10 | "golang.org/x/sys/unix" | 10 | "golang.org/x/sys/unix" | ||
| 11 | ) | 11 | ) | ||
M internal/adapters/wayland/presentation_test.go +2 -2
| @@ -6,10 +6,10 @@ import ( | |||
| 6 | 6 | "testing" | |
| 7 | 7 | "time" | |
| 8 | 8 | ||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 9 | 11 | "github.com/bnema/neferwl/internal/logging" | |
| 10 | 12 | "github.com/bnema/neferwl/internal/ports" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 13 | 13 | "github.com/bnema/wlturbo" | |
| 14 | 14 | "golang.org/x/sys/unix" | |
| 15 | 15 | ) | |
| @@ -6,10 +6,10 @@ import ( | |||||
| 6 | "testing" | 6 | "testing" | ||
| 7 | "time" | 7 | "time" | ||
| 8 | 8 | ||||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 9 | "github.com/bnema/neferwl/internal/logging" | 11 | "github.com/bnema/neferwl/internal/logging" | ||
| 10 | "github.com/bnema/neferwl/internal/ports" | 12 | "github.com/bnema/neferwl/internal/ports" | ||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 13 | "github.com/bnema/wlturbo" | 13 | "github.com/bnema/wlturbo" | ||
| 14 | "golang.org/x/sys/unix" | 14 | "golang.org/x/sys/unix" | ||
| 15 | ) | 15 | ) | ||
M internal/adapters/wayland/protocol_test.go +2 -2
| @@ -11,8 +11,8 @@ import ( | |||
| 11 | 11 | ||
| 12 | 12 | "github.com/bnema/neferwl/internal/ports" | |
| 13 | 13 | ||
| 14 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 15 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 14 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 15 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 16 | 16 | "github.com/bnema/wlturbo" | |
| 17 | 17 | "golang.org/x/sys/unix" | |
| 18 | 18 | ) | |
| @@ -11,8 +11,8 @@ import ( | |||||
| 11 | 11 | ||||
| 12 | "github.com/bnema/neferwl/internal/ports" | 12 | "github.com/bnema/neferwl/internal/ports" | ||
| 13 | 13 | ||||
| 14 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 14 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 15 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | 15 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" |
| 16 | "github.com/bnema/wlturbo" | 16 | "github.com/bnema/wlturbo" | ||
| 17 | "golang.org/x/sys/unix" | 17 | "golang.org/x/sys/unix" | ||
| 18 | ) | 18 | ) | ||
M internal/adapters/wayland/release.go +1 -1
| @@ -3,8 +3,8 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "time" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | 7 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 8 | 8 | ) | |
| 9 | 9 | ||
| 10 | 10 | // Buffer release. Outputs read client buffers in place: the renderer | |
| @@ -3,8 +3,8 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "time" | 4 | "time" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 7 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 8 | ) | 8 | ) | ||
| 9 | 9 | ||||
| 10 | // Buffer release. Outputs read client buffers in place: the renderer | 10 | // Buffer release. Outputs read client buffers in place: the renderer | ||
M internal/adapters/wayland/release_test.go +2 -2
| @@ -8,11 +8,11 @@ import ( | |||
| 8 | 8 | "testing" | |
| 9 | 9 | "time" | |
| 10 | 10 | ||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 11 | 13 | "github.com/bnema/neferwl/internal/adapters/capture" | |
| 12 | 14 | portsmocks "github.com/bnema/neferwl/internal/mocks/ports" | |
| 13 | 15 | "github.com/bnema/neferwl/internal/ports" | |
| 14 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |
| 15 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 16 | 16 | "github.com/stretchr/testify/mock" | |
| 17 | 17 | "github.com/stretchr/testify/require" | |
| 18 | 18 | ) | |
| @@ -8,11 +8,11 @@ import ( | |||||
| 8 | "testing" | 8 | "testing" | ||
| 9 | "time" | 9 | "time" | ||
| 10 | 10 | ||||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 11 | "github.com/bnema/neferwl/internal/adapters/capture" | 13 | "github.com/bnema/neferwl/internal/adapters/capture" | ||
| 12 | portsmocks "github.com/bnema/neferwl/internal/mocks/ports" | 14 | portsmocks "github.com/bnema/neferwl/internal/mocks/ports" | ||
| 13 | "github.com/bnema/neferwl/internal/ports" | 15 | "github.com/bnema/neferwl/internal/ports" | ||
| 14 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |||
| 15 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 16 | "github.com/stretchr/testify/mock" | 16 | "github.com/stretchr/testify/mock" | ||
| 17 | "github.com/stretchr/testify/require" | 17 | "github.com/stretchr/testify/require" | ||
| 18 | ) | 18 | ) | ||
M internal/adapters/wayland/scale.go +3 -3
| @@ -3,9 +3,9 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "math" | |
| 5 | 5 | ||
| 6 | - | "github.com/bnema/purego-libwayland/protocol/fractionalscale" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 6 | + | "github.com/bnema/go-wayland-bindings/server/fractionalscale" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 9 | 9 | "github.com/bnema/purego-libwayland/server" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| @@ -3,9 +3,9 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "math" | 4 | "math" | ||
| 5 | 5 | ||||
| 6 | - | "github.com/bnema/purego-libwayland/protocol/fractionalscale" | 6 | + | "github.com/bnema/go-wayland-bindings/server/fractionalscale" |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | 7 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 9 | "github.com/bnema/purego-libwayland/server" | 9 | "github.com/bnema/purego-libwayland/server" | ||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
M internal/adapters/wayland/scale_test.go +4 -4
| @@ -5,12 +5,12 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/fractionalscale" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 8 | 12 | "github.com/bnema/neferwl/internal/logging" | |
| 9 | 13 | "github.com/bnema/neferwl/internal/ports" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/fractionalscale" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 14 | 14 | "github.com/bnema/wlturbo" | |
| 15 | 15 | "golang.org/x/sys/unix" | |
| 16 | 16 | ) | |
| @@ -5,12 +5,12 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/fractionalscale" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 8 | "github.com/bnema/neferwl/internal/logging" | 12 | "github.com/bnema/neferwl/internal/logging" | ||
| 9 | "github.com/bnema/neferwl/internal/ports" | 13 | "github.com/bnema/neferwl/internal/ports" | ||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/fractionalscale" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 14 | "github.com/bnema/wlturbo" | 14 | "github.com/bnema/wlturbo" | ||
| 15 | "golang.org/x/sys/unix" | 15 | "golang.org/x/sys/unix" | ||
| 16 | ) | 16 | ) | ||
M internal/adapters/wayland/screencopy.go +2 -2
| @@ -6,9 +6,9 @@ import ( | |||
| 6 | 6 | "os" | |
| 7 | 7 | "time" | |
| 8 | 8 | ||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |
| 9 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 11 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |
| 12 | 12 | "github.com/bnema/purego-libwayland/server" | |
| 13 | 13 | "golang.org/x/sys/unix" | |
| 14 | 14 | ) | |
| @@ -6,9 +6,9 @@ import ( | |||||
| 6 | "os" | 6 | "os" | ||
| 7 | "time" | 7 | "time" | ||
| 8 | 8 | ||||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 10 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |||
| 9 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 11 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |||
| 12 | "github.com/bnema/purego-libwayland/server" | 12 | "github.com/bnema/purego-libwayland/server" | ||
| 13 | "golang.org/x/sys/unix" | 13 | "golang.org/x/sys/unix" | ||
| 14 | ) | 14 | ) | ||
M internal/adapters/wayland/screencopy_test.go +4 -4
| @@ -10,13 +10,13 @@ import ( | |||
| 10 | 10 | "testing" | |
| 11 | 11 | "time" | |
| 12 | 12 | ||
| 13 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |
| 14 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |
| 13 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |
| 14 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |
| 15 | 15 | ||
| 16 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 17 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |
| 16 | 18 | "github.com/bnema/neferwl/internal/logging" | |
| 17 | 19 | "github.com/bnema/neferwl/internal/ports" | |
| 18 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 19 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |
| 20 | 20 | "github.com/bnema/wlturbo" | |
| 21 | 21 | "golang.org/x/sys/unix" | |
| 22 | 22 | ) | |
| @@ -10,13 +10,13 @@ import ( | |||||
| 10 | "testing" | 10 | "testing" | ||
| 11 | "time" | 11 | "time" | ||
| 12 | 12 | ||||
| 13 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | 13 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" |
| 14 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | 14 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" |
| 15 | 15 | ||||
| 16 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 17 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |||
| 16 | "github.com/bnema/neferwl/internal/logging" | 18 | "github.com/bnema/neferwl/internal/logging" | ||
| 17 | "github.com/bnema/neferwl/internal/ports" | 19 | "github.com/bnema/neferwl/internal/ports" | ||
| 18 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 19 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |||
| 20 | "github.com/bnema/wlturbo" | 20 | "github.com/bnema/wlturbo" | ||
| 21 | "golang.org/x/sys/unix" | 21 | "golang.org/x/sys/unix" | ||
| 22 | ) | 22 | ) | ||
M internal/adapters/wayland/seat.go +1 -1
| @@ -5,8 +5,8 @@ import ( | |||
| 5 | 5 | "fmt" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 8 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | 10 | "github.com/bnema/purego-libwayland/server" | |
| 11 | 11 | "golang.org/x/sys/unix" | |
| 12 | 12 | ) | |
| @@ -5,8 +5,8 @@ import ( | |||||
| 5 | "fmt" | 5 | "fmt" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | "github.com/bnema/purego-libwayland/server" | 10 | "github.com/bnema/purego-libwayland/server" | ||
| 11 | "golang.org/x/sys/unix" | 11 | "golang.org/x/sys/unix" | ||
| 12 | ) | 12 | ) | ||
M internal/adapters/wayland/securitycontext.go +1 -1
| @@ -5,7 +5,7 @@ import ( | |||
| 5 | 5 | "strings" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/securitycontext" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/securitycontext" | |
| 9 | 9 | "github.com/bnema/purego-libwayland/server" | |
| 10 | 10 | "golang.org/x/sys/unix" | |
| 11 | 11 | ) | |
| @@ -5,7 +5,7 @@ import ( | |||||
| 5 | "strings" | 5 | "strings" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/securitycontext" | 8 | + | "github.com/bnema/go-wayland-bindings/server/securitycontext" |
| 9 | "github.com/bnema/purego-libwayland/server" | 9 | "github.com/bnema/purego-libwayland/server" | ||
| 10 | "golang.org/x/sys/unix" | 10 | "golang.org/x/sys/unix" | ||
| 11 | ) | 11 | ) | ||
M internal/adapters/wayland/securitycontext_test.go +1 -1
| @@ -9,8 +9,8 @@ import ( | |||
| 9 | 9 | "testing" | |
| 10 | 10 | "time" | |
| 11 | 11 | ||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/securitycontext" | |
| 12 | 13 | "github.com/bnema/neferwl/internal/logging" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/securitycontext" | |
| 14 | 14 | "github.com/bnema/wlturbo" | |
| 15 | 15 | "golang.org/x/sys/unix" | |
| 16 | 16 | ) | |
| @@ -9,8 +9,8 @@ import ( | |||||
| 9 | "testing" | 9 | "testing" | ||
| 10 | "time" | 10 | "time" | ||
| 11 | 11 | ||||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/securitycontext" | |||
| 12 | "github.com/bnema/neferwl/internal/logging" | 13 | "github.com/bnema/neferwl/internal/logging" | ||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/securitycontext" | |||
| 14 | "github.com/bnema/wlturbo" | 14 | "github.com/bnema/wlturbo" | ||
| 15 | "golang.org/x/sys/unix" | 15 | "golang.org/x/sys/unix" | ||
| 16 | ) | 16 | ) | ||
M internal/adapters/wayland/sensitive_test.go +11 -11
| @@ -5,22 +5,22 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/cursorshape" | |
| 9 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrforeigntoplevelmanagement" | |
| 10 | + | screencopy "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/xdgactivation" | |
| 12 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 8 | 13 | "github.com/bnema/neferwl/internal/adapters/sessionsecurity" | |
| 9 | 14 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/cursorshape" | |
| 11 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrforeigntoplevel" | |
| 12 | - | screencopy "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/xdgactivation" | |
| 14 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 15 | 15 | ||
| 16 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |
| 17 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |
| 18 | + | "github.com/bnema/go-wayland-bindings/server/inputmethod" | |
| 19 | + | "github.com/bnema/go-wayland-bindings/server/textinput" | |
| 20 | + | "github.com/bnema/go-wayland-bindings/server/virtualkeyboard" | |
| 21 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 16 | 22 | portsmocks "github.com/bnema/neferwl/internal/mocks/ports" | |
| 17 | 23 | "github.com/bnema/neferwl/internal/ports" | |
| 18 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |
| 19 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |
| 20 | - | "github.com/bnema/purego-libwayland/protocol/inputmethod" | |
| 21 | - | "github.com/bnema/purego-libwayland/protocol/textinput" | |
| 22 | - | "github.com/bnema/purego-libwayland/protocol/virtualkeyboard" | |
| 23 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 24 | 24 | "golang.org/x/sys/unix" | |
| 25 | 25 | ) | |
| 26 | 26 | ||
| @@ -5,22 +5,22 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/cursorshape" | |||
| 9 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlrforeigntoplevelmanagement" | |||
| 10 | + | screencopy "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/xdgactivation" | |||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 8 | "github.com/bnema/neferwl/internal/adapters/sessionsecurity" | 13 | "github.com/bnema/neferwl/internal/adapters/sessionsecurity" | ||
| 9 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | 14 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | ||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/cursorshape" | |||
| 11 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlrforeigntoplevel" | |||
| 12 | - | screencopy "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/xdgactivation" | |||
| 14 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 15 | 15 | ||||
| 16 | + | source "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |||
| 17 | + | ext "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |||
| 18 | + | "github.com/bnema/go-wayland-bindings/server/inputmethod" | |||
| 19 | + | "github.com/bnema/go-wayland-bindings/server/textinput" | |||
| 20 | + | "github.com/bnema/go-wayland-bindings/server/virtualkeyboard" | |||
| 21 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 16 | portsmocks "github.com/bnema/neferwl/internal/mocks/ports" | 22 | portsmocks "github.com/bnema/neferwl/internal/mocks/ports" | ||
| 17 | "github.com/bnema/neferwl/internal/ports" | 23 | "github.com/bnema/neferwl/internal/ports" | ||
| 18 | - | source "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |||
| 19 | - | ext "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |||
| 20 | - | "github.com/bnema/purego-libwayland/protocol/inputmethod" | |||
| 21 | - | "github.com/bnema/purego-libwayland/protocol/textinput" | |||
| 22 | - | "github.com/bnema/purego-libwayland/protocol/virtualkeyboard" | |||
| 23 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 24 | "golang.org/x/sys/unix" | 24 | "golang.org/x/sys/unix" | ||
| 25 | ) | 25 | ) | ||
| 26 | 26 | ||||
M internal/adapters/wayland/server.go +3 -3
| @@ -8,15 +8,15 @@ import ( | |||
| 8 | 8 | "sync/atomic" | |
| 9 | 9 | "time" | |
| 10 | 10 | ||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/relativepointer" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/relativepointer" | |
| 12 | 12 | ||
| 13 | + | "github.com/bnema/go-wayland-bindings/server/fractionalscale" | |
| 14 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 13 | 15 | "github.com/bnema/neferwl/internal/adapters/captureallow" | |
| 14 | 16 | "github.com/bnema/neferwl/internal/adapters/clock" | |
| 15 | 17 | "github.com/bnema/neferwl/internal/adapters/workspaceid" | |
| 16 | 18 | "github.com/bnema/neferwl/internal/ports" | |
| 17 | 19 | "github.com/bnema/neferwl/internal/sessionlock" | |
| 18 | - | "github.com/bnema/purego-libwayland/protocol/fractionalscale" | |
| 19 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 20 | 20 | "github.com/bnema/purego-libwayland/server" | |
| 21 | 21 | "github.com/bnema/zerowrap" | |
| 22 | 22 | "golang.org/x/sys/unix" | |
| @@ -8,15 +8,15 @@ import ( | |||||
| 8 | "sync/atomic" | 8 | "sync/atomic" | ||
| 9 | "time" | 9 | "time" | ||
| 10 | 10 | ||||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/relativepointer" | 11 | + | "github.com/bnema/go-wayland-bindings/server/relativepointer" |
| 12 | 12 | ||||
| 13 | + | "github.com/bnema/go-wayland-bindings/server/fractionalscale" | |||
| 14 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 13 | "github.com/bnema/neferwl/internal/adapters/captureallow" | 15 | "github.com/bnema/neferwl/internal/adapters/captureallow" | ||
| 14 | "github.com/bnema/neferwl/internal/adapters/clock" | 16 | "github.com/bnema/neferwl/internal/adapters/clock" | ||
| 15 | "github.com/bnema/neferwl/internal/adapters/workspaceid" | 17 | "github.com/bnema/neferwl/internal/adapters/workspaceid" | ||
| 16 | "github.com/bnema/neferwl/internal/ports" | 18 | "github.com/bnema/neferwl/internal/ports" | ||
| 17 | "github.com/bnema/neferwl/internal/sessionlock" | 19 | "github.com/bnema/neferwl/internal/sessionlock" | ||
| 18 | - | "github.com/bnema/purego-libwayland/protocol/fractionalscale" | |||
| 19 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 20 | "github.com/bnema/purego-libwayland/server" | 20 | "github.com/bnema/purego-libwayland/server" | ||
| 21 | "github.com/bnema/zerowrap" | 21 | "github.com/bnema/zerowrap" | ||
| 22 | "golang.org/x/sys/unix" | 22 | "golang.org/x/sys/unix" | ||
M internal/adapters/wayland/session_lock.go +2 -2
| @@ -3,9 +3,9 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "context" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | 8 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 9 | 9 | "github.com/bnema/purego-libwayland/server" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| @@ -3,9 +3,9 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "context" | 4 | "context" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 8 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 9 | "github.com/bnema/purego-libwayland/server" | 9 | "github.com/bnema/purego-libwayland/server" | ||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
M internal/adapters/wayland/session_lock_input_epoch_test.go +1 -1
| @@ -7,10 +7,10 @@ import ( | |||
| 7 | 7 | "testing" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | 11 | "github.com/bnema/neferwl/internal/adapters/sessionsecurity" | |
| 11 | 12 | "github.com/bnema/neferwl/internal/logging" | |
| 12 | 13 | "github.com/bnema/neferwl/internal/ports" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 14 | 14 | "github.com/bnema/wlturbo" | |
| 15 | 15 | "github.com/bnema/wlturbo/protocol/core" | |
| 16 | 16 | ) | |
| @@ -7,10 +7,10 @@ import ( | |||||
| 7 | "testing" | 7 | "testing" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 10 | "github.com/bnema/neferwl/internal/adapters/sessionsecurity" | 11 | "github.com/bnema/neferwl/internal/adapters/sessionsecurity" | ||
| 11 | "github.com/bnema/neferwl/internal/logging" | 12 | "github.com/bnema/neferwl/internal/logging" | ||
| 12 | "github.com/bnema/neferwl/internal/ports" | 13 | "github.com/bnema/neferwl/internal/ports" | ||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 14 | "github.com/bnema/wlturbo" | 14 | "github.com/bnema/wlturbo" | ||
| 15 | "github.com/bnema/wlturbo/protocol/core" | 15 | "github.com/bnema/wlturbo/protocol/core" | ||
| 16 | ) | 16 | ) | ||
M internal/adapters/wayland/session_lock_lifecycle_test.go +3 -3
| @@ -7,12 +7,12 @@ import ( | |||
| 7 | 7 | "testing" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/drmlease" | |
| 11 | + | serverlock "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | 13 | "github.com/bnema/neferwl/internal/adapters/sessionsecurity" | |
| 11 | 14 | "github.com/bnema/neferwl/internal/logging" | |
| 12 | 15 | "github.com/bnema/neferwl/internal/ports" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/drmlease" | |
| 14 | - | serverlock "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |
| 15 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 16 | 16 | "github.com/bnema/wlturbo" | |
| 17 | 17 | "github.com/bnema/wlturbo/protocol/core" | |
| 18 | 18 | lockclient "github.com/bnema/wlturbo/protocol/extsessionlock" | |
| @@ -7,12 +7,12 @@ import ( | |||||
| 7 | "testing" | 7 | "testing" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/drmlease" | |||
| 11 | + | serverlock "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 10 | "github.com/bnema/neferwl/internal/adapters/sessionsecurity" | 13 | "github.com/bnema/neferwl/internal/adapters/sessionsecurity" | ||
| 11 | "github.com/bnema/neferwl/internal/logging" | 14 | "github.com/bnema/neferwl/internal/logging" | ||
| 12 | "github.com/bnema/neferwl/internal/ports" | 15 | "github.com/bnema/neferwl/internal/ports" | ||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/drmlease" | |||
| 14 | - | serverlock "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |||
| 15 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 16 | "github.com/bnema/wlturbo" | 16 | "github.com/bnema/wlturbo" | ||
| 17 | "github.com/bnema/wlturbo/protocol/core" | 17 | "github.com/bnema/wlturbo/protocol/core" | ||
| 18 | lockclient "github.com/bnema/wlturbo/protocol/extsessionlock" | 18 | lockclient "github.com/bnema/wlturbo/protocol/extsessionlock" | ||
M internal/adapters/wayland/session_lock_refused.go +1 -1
| @@ -1,6 +1,6 @@ | |||
| 1 | 1 | package wayland | |
| 2 | 2 | ||
| 3 | - | import "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |
| 3 | + | import "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |
| 4 | 4 | ||
| 5 | 5 | // A constructor pipelined before finished must still create its new object, | |
| 6 | 6 | // but a refused lock never assigns a wl_surface role or changes active focus. | |
| @@ -1,6 +1,6 @@ | |||||
| 1 | package wayland | 1 | package wayland | ||
| 2 | 2 | ||||
| 3 | - | import "github.com/bnema/purego-libwayland/protocol/extsessionlock" | 3 | + | import "github.com/bnema/go-wayland-bindings/server/extsessionlock" |
| 4 | 4 | ||||
| 5 | // A constructor pipelined before finished must still create its new object, | 5 | // A constructor pipelined before finished must still create its new object, | ||
| 6 | // but a refused lock never assigns a wl_surface role or changes active focus. | 6 | // but a refused lock never assigns a wl_surface role or changes active focus. | ||
M internal/adapters/wayland/session_lock_surface.go +2 -2
| @@ -4,9 +4,9 @@ import ( | |||
| 4 | 4 | "cmp" | |
| 5 | 5 | "slices" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // lockConfigure is an issued configure, or the last acknowledged configure. | |
| @@ -4,9 +4,9 @@ import ( | |||||
| 4 | "cmp" | 4 | "cmp" | ||
| 5 | "slices" | 5 | "slices" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
| 12 | // lockConfigure is an issued configure, or the last acknowledged configure. | 12 | // lockConfigure is an issued configure, or the last acknowledged configure. | ||
M internal/adapters/wayland/session_lock_surface_test.go +6 -6
| @@ -4,12 +4,12 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/linuxdrmsyncobj" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |
| 12 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 13 | 13 | "github.com/bnema/wlturbo" | |
| 14 | 14 | "golang.org/x/sys/unix" | |
| 15 | 15 | ) | |
| @@ -4,12 +4,12 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/extsessionlock" | 7 | + | "github.com/bnema/go-wayland-bindings/server/extsessionlock" |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj" | 8 | + | "github.com/bnema/go-wayland-bindings/server/linuxdrmsyncobj" |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | 9 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | 11 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | 12 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" |
| 13 | "github.com/bnema/wlturbo" | 13 | "github.com/bnema/wlturbo" | ||
| 14 | "golang.org/x/sys/unix" | 14 | "golang.org/x/sys/unix" | ||
| 15 | ) | 15 | ) | ||
M internal/adapters/wayland/subsurface_test.go +4 -4
| @@ -4,11 +4,11 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 7 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 12 | 12 | "golang.org/x/sys/unix" | |
| 13 | 13 | ) | |
| 14 | 14 | ||
| @@ -4,11 +4,11 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 12 | "golang.org/x/sys/unix" | 12 | "golang.org/x/sys/unix" | ||
| 13 | ) | 13 | ) | ||
| 14 | 14 | ||||
M internal/adapters/wayland/surface.go +4 -4
| @@ -7,12 +7,12 @@ import ( | |||
| 7 | 7 | "slices" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" | |
| 11 | 11 | ||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 13 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |
| 14 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 12 | 15 | "github.com/bnema/neferwl/internal/ports" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 14 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |
| 15 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 16 | 16 | ) | |
| 17 | 17 | ||
| 18 | 18 | type roleKind uint8 | |
| @@ -7,12 +7,12 @@ import ( | |||||
| 7 | "slices" | 7 | "slices" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/presentationtime" | 10 | + | "github.com/bnema/go-wayland-bindings/server/presentationtime" |
| 11 | 11 | ||||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 13 | + | "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |||
| 14 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 12 | "github.com/bnema/neferwl/internal/ports" | 15 | "github.com/bnema/neferwl/internal/ports" | ||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 14 | - | "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |||
| 15 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 16 | ) | 16 | ) | ||
| 17 | 17 | ||||
| 18 | type roleKind uint8 | 18 | type roleKind uint8 | ||
M internal/adapters/wayland/syncobj.go +2 -2
| @@ -7,9 +7,9 @@ import ( | |||
| 7 | 7 | "sync" | |
| 8 | 8 | "sync/atomic" | |
| 9 | 9 | ||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/linuxdrmsyncobj" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | 12 | "github.com/bnema/neferwl/internal/ports" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 13 | 13 | "github.com/bnema/purego-libwayland/server" | |
| 14 | 14 | "github.com/bnema/zerowrap" | |
| 15 | 15 | "golang.org/x/sys/unix" | |
| @@ -7,9 +7,9 @@ import ( | |||||
| 7 | "sync" | 7 | "sync" | ||
| 8 | "sync/atomic" | 8 | "sync/atomic" | ||
| 9 | 9 | ||||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/linuxdrmsyncobj" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 10 | "github.com/bnema/neferwl/internal/ports" | 12 | "github.com/bnema/neferwl/internal/ports" | ||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 13 | "github.com/bnema/purego-libwayland/server" | 13 | "github.com/bnema/purego-libwayland/server" | ||
| 14 | "github.com/bnema/zerowrap" | 14 | "github.com/bnema/zerowrap" | ||
| 15 | "golang.org/x/sys/unix" | 15 | "golang.org/x/sys/unix" | ||
M internal/adapters/wayland/syncobj_test.go +5 -5
| @@ -9,13 +9,13 @@ import ( | |||
| 9 | 9 | "time" | |
| 10 | 10 | "unsafe" | |
| 11 | 11 | ||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/committiming" | |
| 13 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |
| 14 | + | "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |
| 15 | + | "github.com/bnema/go-wayland-bindings/server/linuxdrmsyncobj" | |
| 16 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 12 | 17 | "github.com/bnema/neferwl/internal/logging" | |
| 13 | 18 | "github.com/bnema/neferwl/internal/ports" | |
| 14 | - | "github.com/bnema/purego-libwayland/protocol/committiming" | |
| 15 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |
| 16 | - | "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |
| 17 | - | "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj" | |
| 18 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 19 | 19 | "github.com/bnema/wlturbo" | |
| 20 | 20 | "github.com/stretchr/testify/mock" | |
| 21 | 21 | "golang.org/x/sys/unix" | |
| @@ -9,13 +9,13 @@ import ( | |||||
| 9 | "time" | 9 | "time" | ||
| 10 | "unsafe" | 10 | "unsafe" | ||
| 11 | 11 | ||||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/committiming" | |||
| 13 | + | "github.com/bnema/go-wayland-bindings/server/fifo" | |||
| 14 | + | "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |||
| 15 | + | "github.com/bnema/go-wayland-bindings/server/linuxdrmsyncobj" | |||
| 16 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 12 | "github.com/bnema/neferwl/internal/logging" | 17 | "github.com/bnema/neferwl/internal/logging" | ||
| 13 | "github.com/bnema/neferwl/internal/ports" | 18 | "github.com/bnema/neferwl/internal/ports" | ||
| 14 | - | "github.com/bnema/purego-libwayland/protocol/committiming" | |||
| 15 | - | "github.com/bnema/purego-libwayland/protocol/fifo" | |||
| 16 | - | "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |||
| 17 | - | "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj" | |||
| 18 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 19 | "github.com/bnema/wlturbo" | 19 | "github.com/bnema/wlturbo" | ||
| 20 | "github.com/stretchr/testify/mock" | 20 | "github.com/stretchr/testify/mock" | ||
| 21 | "golang.org/x/sys/unix" | 21 | "golang.org/x/sys/unix" | ||
M internal/adapters/wayland/tearing.go +2 -2
| @@ -1,8 +1,8 @@ | |||
| 1 | 1 | package wayland | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | - | "github.com/bnema/purego-libwayland/protocol/tearingcontrol" | |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 4 | + | "github.com/bnema/go-wayland-bindings/server/tearingcontrol" | |
| 5 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 6 | 6 | "github.com/bnema/purego-libwayland/server" | |
| 7 | 7 | ) | |
| 8 | 8 | ||
| @@ -1,8 +1,8 @@ | |||||
| 1 | package wayland | 1 | package wayland | ||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | - | "github.com/bnema/purego-libwayland/protocol/tearingcontrol" | 4 | + | "github.com/bnema/go-wayland-bindings/server/tearingcontrol" |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 5 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 6 | "github.com/bnema/purego-libwayland/server" | 6 | "github.com/bnema/purego-libwayland/server" | ||
| 7 | ) | 7 | ) | ||
| 8 | 8 | ||||
M internal/adapters/wayland/tearing_test.go +2 -2
| @@ -4,9 +4,9 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/tearingcontrol" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/tearingcontrol" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // asyncContent waits for a content of window id with the given hint. | |
| @@ -4,9 +4,9 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/tearingcontrol" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/tearingcontrol" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
| 12 | // asyncContent waits for a content of window id with the given hint. | 12 | // asyncContent waits for a content of window id with the given hint. | ||
M internal/adapters/wayland/textinput.go +3 -3
| @@ -1,10 +1,10 @@ | |||
| 1 | 1 | package wayland | |
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | + | "github.com/bnema/go-wayland-bindings/server/inputmethod" | |
| 5 | + | "github.com/bnema/go-wayland-bindings/server/textinput" | |
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 4 | 7 | "github.com/bnema/neferwl/internal/ports" | |
| 5 | - | "github.com/bnema/purego-libwayland/protocol/inputmethod" | |
| 6 | - | "github.com/bnema/purego-libwayland/protocol/textinput" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 8 | 8 | "github.com/bnema/purego-libwayland/server" | |
| 9 | 9 | ) | |
| 10 | 10 | ||
| @@ -1,10 +1,10 @@ | |||||
| 1 | package wayland | 1 | package wayland | ||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | + | "github.com/bnema/go-wayland-bindings/server/inputmethod" | |||
| 5 | + | "github.com/bnema/go-wayland-bindings/server/textinput" | |||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 4 | "github.com/bnema/neferwl/internal/ports" | 7 | "github.com/bnema/neferwl/internal/ports" | ||
| 5 | - | "github.com/bnema/purego-libwayland/protocol/inputmethod" | |||
| 6 | - | "github.com/bnema/purego-libwayland/protocol/textinput" | |||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 8 | "github.com/bnema/purego-libwayland/server" | 8 | "github.com/bnema/purego-libwayland/server" | ||
| 9 | ) | 9 | ) | ||
| 10 | 10 | ||||
M internal/adapters/wayland/textinput_test.go +4 -4
| @@ -7,11 +7,11 @@ import ( | |||
| 7 | 7 | "testing" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/inputmethod" | |
| 11 | + | "github.com/bnema/go-wayland-bindings/server/textinput" | |
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 13 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 10 | 14 | "github.com/bnema/neferwl/internal/ports" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/inputmethod" | |
| 12 | - | "github.com/bnema/purego-libwayland/protocol/textinput" | |
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 14 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 15 | 15 | "github.com/bnema/wlturbo" | |
| 16 | 16 | "golang.org/x/sys/unix" | |
| 17 | 17 | ) | |
| @@ -7,11 +7,11 @@ import ( | |||||
| 7 | "testing" | 7 | "testing" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/inputmethod" | |||
| 11 | + | "github.com/bnema/go-wayland-bindings/server/textinput" | |||
| 12 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 13 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 10 | "github.com/bnema/neferwl/internal/ports" | 14 | "github.com/bnema/neferwl/internal/ports" | ||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/inputmethod" | |||
| 12 | - | "github.com/bnema/purego-libwayland/protocol/textinput" | |||
| 13 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 14 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 15 | "github.com/bnema/wlturbo" | 15 | "github.com/bnema/wlturbo" | ||
| 16 | "golang.org/x/sys/unix" | 16 | "golang.org/x/sys/unix" | ||
| 17 | ) | 17 | ) | ||
M internal/adapters/wayland/tiled_playback_test.go +1 -1
| @@ -4,9 +4,9 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 8 | "github.com/bnema/neferwl/internal/adapters/vulkan" | |
| 8 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | 10 | "github.com/bnema/wlturbo" | |
| 11 | 11 | "golang.org/x/sys/unix" | |
| 12 | 12 | ) | |
| @@ -4,9 +4,9 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/adapters/vulkan" | 8 | "github.com/bnema/neferwl/internal/adapters/vulkan" | ||
| 8 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | "github.com/bnema/wlturbo" | 10 | "github.com/bnema/wlturbo" | ||
| 11 | "golang.org/x/sys/unix" | 11 | "golang.org/x/sys/unix" | ||
| 12 | ) | 12 | ) | ||
M internal/adapters/wayland/transform_test.go +3 -3
| @@ -4,10 +4,10 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 7 | 10 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 11 | 11 | "github.com/bnema/wlturbo" | |
| 12 | 12 | "golang.org/x/sys/unix" | |
| 13 | 13 | ) | |
| @@ -4,10 +4,10 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 10 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 11 | "github.com/bnema/wlturbo" | 11 | "github.com/bnema/wlturbo" | ||
| 12 | "golang.org/x/sys/unix" | 12 | "golang.org/x/sys/unix" | ||
| 13 | ) | 13 | ) | ||
M internal/adapters/wayland/viewport_queue_test.go +2 -2
| @@ -5,8 +5,8 @@ import ( | |||
| 5 | 5 | "testing" | |
| 6 | 6 | "time" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" | |
| 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | // A queued attachment that was destroyed cannot apply either its new crop or | |
| @@ -5,8 +5,8 @@ import ( | |||||
| 5 | "testing" | 5 | "testing" | ||
| 6 | "time" | 6 | "time" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/viewporter" | 8 | + | "github.com/bnema/go-wayland-bindings/server/viewporter" |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | 9 | + | "github.com/bnema/go-wayland-bindings/server/wayland" |
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
| 12 | // A queued attachment that was destroyed cannot apply either its new crop or | 12 | // A queued attachment that was destroyed cannot apply either its new crop or | ||
M internal/adapters/wayland/virtualkeyboard.go +2 -2
| @@ -4,9 +4,9 @@ import ( | |||
| 4 | 4 | "bytes" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/virtualkeyboard" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/virtualkeyboard" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 10 | 10 | "github.com/bnema/purego-libwayland/server" | |
| 11 | 11 | "golang.org/x/sys/unix" | |
| 12 | 12 | ) | |
| @@ -4,9 +4,9 @@ import ( | |||||
| 4 | "bytes" | 4 | "bytes" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/virtualkeyboard" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/virtualkeyboard" | |||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 10 | "github.com/bnema/purego-libwayland/server" | 10 | "github.com/bnema/purego-libwayland/server" | ||
| 11 | "golang.org/x/sys/unix" | 11 | "golang.org/x/sys/unix" | ||
| 12 | ) | 12 | ) | ||
M internal/adapters/wayland/virtualkeyboard_test.go +2 -2
| @@ -6,9 +6,9 @@ import ( | |||
| 6 | 6 | "testing" | |
| 7 | 7 | "time" | |
| 8 | 8 | ||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/virtualkeyboard" | |
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 9 | 11 | "github.com/bnema/neferwl/internal/ports" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/virtualkeyboard" | |
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 12 | 12 | "github.com/bnema/wlturbo" | |
| 13 | 13 | "golang.org/x/sys/unix" | |
| 14 | 14 | ) | |
| @@ -6,9 +6,9 @@ import ( | |||||
| 6 | "testing" | 6 | "testing" | ||
| 7 | "time" | 7 | "time" | ||
| 8 | 8 | ||||
| 9 | + | "github.com/bnema/go-wayland-bindings/server/virtualkeyboard" | |||
| 10 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 9 | "github.com/bnema/neferwl/internal/ports" | 11 | "github.com/bnema/neferwl/internal/ports" | ||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/virtualkeyboard" | |||
| 11 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 12 | "github.com/bnema/wlturbo" | 12 | "github.com/bnema/wlturbo" | ||
| 13 | "golang.org/x/sys/unix" | 13 | "golang.org/x/sys/unix" | ||
| 14 | ) | 14 | ) | ||
M internal/adapters/wayland/wire_client_test.go +39 -39
| @@ -10,46 +10,46 @@ import ( | |||
| 10 | 10 | "sync" | |
| 11 | 11 | "testing" | |
| 12 | 12 | ||
| 13 | + | wire_alphamodifier "github.com/bnema/go-wayland-bindings/server/alphamodifier" | |
| 14 | + | wire_colormanagement "github.com/bnema/go-wayland-bindings/server/colormanagement" | |
| 15 | + | wire_colorrepresentation "github.com/bnema/go-wayland-bindings/server/colorrepresentation" | |
| 16 | + | wire_committiming "github.com/bnema/go-wayland-bindings/server/committiming" | |
| 17 | + | wire_cursorshape "github.com/bnema/go-wayland-bindings/server/cursorshape" | |
| 18 | + | wire_drmlease "github.com/bnema/go-wayland-bindings/server/drmlease" | |
| 19 | + | wire_extdatacontrol "github.com/bnema/go-wayland-bindings/server/extdatacontrol" | |
| 20 | + | wire_extidlenotify "github.com/bnema/go-wayland-bindings/server/extidlenotify" | |
| 21 | + | wire_extimagecapturesource "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |
| 22 | + | wire_extimagecopycapture "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |
| 23 | + | wire_extsessionlock "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |
| 24 | + | wire_extworkspace "github.com/bnema/go-wayland-bindings/server/extworkspace" | |
| 25 | + | wire_fifo "github.com/bnema/go-wayland-bindings/server/fifo" | |
| 26 | + | wire_fractionalscale "github.com/bnema/go-wayland-bindings/server/fractionalscale" | |
| 27 | + | wire_idleinhibit "github.com/bnema/go-wayland-bindings/server/idleinhibit" | |
| 28 | + | wire_inputmethod "github.com/bnema/go-wayland-bindings/server/inputmethod" | |
| 29 | + | wire_keyboardshortcutsinhibit "github.com/bnema/go-wayland-bindings/server/keyboardshortcutsinhibit" | |
| 30 | + | wire_linuxdmabuf "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |
| 31 | + | wire_linuxdrmsyncobj "github.com/bnema/go-wayland-bindings/server/linuxdrmsyncobj" | |
| 32 | + | wire_pointerconstraints "github.com/bnema/go-wayland-bindings/server/pointerconstraints" | |
| 33 | + | wire_pointerwarp "github.com/bnema/go-wayland-bindings/server/pointerwarp" | |
| 34 | + | wire_presentationtime "github.com/bnema/go-wayland-bindings/server/presentationtime" | |
| 35 | + | wire_primaryselection "github.com/bnema/go-wayland-bindings/server/primaryselection" | |
| 36 | + | wire_relativepointer "github.com/bnema/go-wayland-bindings/server/relativepointer" | |
| 37 | + | wire_securitycontext "github.com/bnema/go-wayland-bindings/server/securitycontext" | |
| 38 | + | wire_kdedecoration "github.com/bnema/go-wayland-bindings/server/serverdecoration" | |
| 39 | + | wire_tearingcontrol "github.com/bnema/go-wayland-bindings/server/tearingcontrol" | |
| 40 | + | wire_textinput "github.com/bnema/go-wayland-bindings/server/textinput" | |
| 41 | + | wire_viewporter "github.com/bnema/go-wayland-bindings/server/viewporter" | |
| 42 | + | wire_virtualkeyboard "github.com/bnema/go-wayland-bindings/server/virtualkeyboard" | |
| 43 | + | wire_wayland "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 44 | + | wire_wlrforeigntoplevel "github.com/bnema/go-wayland-bindings/server/wlrforeigntoplevelmanagement" | |
| 45 | + | wire_wlrlayershell "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |
| 46 | + | wire_wlroutputmanagement "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |
| 47 | + | wire_wlroutputpower "github.com/bnema/go-wayland-bindings/server/wlroutputpowermanagement" | |
| 48 | + | wire_wlrscreencopy "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |
| 49 | + | wire_xdgactivation "github.com/bnema/go-wayland-bindings/server/xdgactivation" | |
| 50 | + | wire_xdgoutput "github.com/bnema/go-wayland-bindings/server/xdgoutput" | |
| 51 | + | wire_xdgshell "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 13 | 52 | wire_imagecapture "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | |
| 14 | - | wire_alphamodifier "github.com/bnema/purego-libwayland/protocol/alphamodifier" | |
| 15 | - | wire_colormanagement "github.com/bnema/purego-libwayland/protocol/colormanagement" | |
| 16 | - | wire_colorrepresentation "github.com/bnema/purego-libwayland/protocol/colorrepresentation" | |
| 17 | - | wire_committiming "github.com/bnema/purego-libwayland/protocol/committiming" | |
| 18 | - | wire_cursorshape "github.com/bnema/purego-libwayland/protocol/cursorshape" | |
| 19 | - | wire_drmlease "github.com/bnema/purego-libwayland/protocol/drmlease" | |
| 20 | - | wire_extdatacontrol "github.com/bnema/purego-libwayland/protocol/extdatacontrol" | |
| 21 | - | wire_extidlenotify "github.com/bnema/purego-libwayland/protocol/extidlenotify" | |
| 22 | - | wire_extimagecapturesource "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |
| 23 | - | wire_extimagecopycapture "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |
| 24 | - | wire_extsessionlock "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |
| 25 | - | wire_extworkspace "github.com/bnema/purego-libwayland/protocol/extworkspace" | |
| 26 | - | wire_fifo "github.com/bnema/purego-libwayland/protocol/fifo" | |
| 27 | - | wire_fractionalscale "github.com/bnema/purego-libwayland/protocol/fractionalscale" | |
| 28 | - | wire_idleinhibit "github.com/bnema/purego-libwayland/protocol/idleinhibit" | |
| 29 | - | wire_inputmethod "github.com/bnema/purego-libwayland/protocol/inputmethod" | |
| 30 | - | wire_kdedecoration "github.com/bnema/purego-libwayland/protocol/kdedecoration" | |
| 31 | - | wire_keyboardshortcutsinhibit "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit" | |
| 32 | - | wire_linuxdmabuf "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |
| 33 | - | wire_linuxdrmsyncobj "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj" | |
| 34 | - | wire_pointerconstraints "github.com/bnema/purego-libwayland/protocol/pointerconstraints" | |
| 35 | - | wire_pointerwarp "github.com/bnema/purego-libwayland/protocol/pointerwarp" | |
| 36 | - | wire_presentationtime "github.com/bnema/purego-libwayland/protocol/presentationtime" | |
| 37 | - | wire_primaryselection "github.com/bnema/purego-libwayland/protocol/primaryselection" | |
| 38 | - | wire_relativepointer "github.com/bnema/purego-libwayland/protocol/relativepointer" | |
| 39 | - | wire_securitycontext "github.com/bnema/purego-libwayland/protocol/securitycontext" | |
| 40 | - | wire_tearingcontrol "github.com/bnema/purego-libwayland/protocol/tearingcontrol" | |
| 41 | - | wire_textinput "github.com/bnema/purego-libwayland/protocol/textinput" | |
| 42 | - | wire_viewporter "github.com/bnema/purego-libwayland/protocol/viewporter" | |
| 43 | - | wire_virtualkeyboard "github.com/bnema/purego-libwayland/protocol/virtualkeyboard" | |
| 44 | - | wire_wayland "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 45 | - | wire_wlrforeigntoplevel "github.com/bnema/purego-libwayland/protocol/wlrforeigntoplevel" | |
| 46 | - | wire_wlrlayershell "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |
| 47 | - | wire_wlroutputmanagement "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |
| 48 | - | wire_wlroutputpower "github.com/bnema/purego-libwayland/protocol/wlroutputpower" | |
| 49 | - | wire_wlrscreencopy "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |
| 50 | - | wire_xdgactivation "github.com/bnema/purego-libwayland/protocol/xdgactivation" | |
| 51 | - | wire_xdgoutput "github.com/bnema/purego-libwayland/protocol/xdgoutput" | |
| 52 | - | wire_xdgshell "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 53 | 53 | "github.com/bnema/purego-libwayland/server" | |
| 54 | 54 | "github.com/bnema/wlturbo" | |
| 55 | 55 | client_alphamodifier "github.com/bnema/wlturbo/protocol/alphamodifier" | |
| @@ -10,46 +10,46 @@ import ( | |||||
| 10 | "sync" | 10 | "sync" | ||
| 11 | "testing" | 11 | "testing" | ||
| 12 | 12 | ||||
| 13 | + | wire_alphamodifier "github.com/bnema/go-wayland-bindings/server/alphamodifier" | |||
| 14 | + | wire_colormanagement "github.com/bnema/go-wayland-bindings/server/colormanagement" | |||
| 15 | + | wire_colorrepresentation "github.com/bnema/go-wayland-bindings/server/colorrepresentation" | |||
| 16 | + | wire_committiming "github.com/bnema/go-wayland-bindings/server/committiming" | |||
| 17 | + | wire_cursorshape "github.com/bnema/go-wayland-bindings/server/cursorshape" | |||
| 18 | + | wire_drmlease "github.com/bnema/go-wayland-bindings/server/drmlease" | |||
| 19 | + | wire_extdatacontrol "github.com/bnema/go-wayland-bindings/server/extdatacontrol" | |||
| 20 | + | wire_extidlenotify "github.com/bnema/go-wayland-bindings/server/extidlenotify" | |||
| 21 | + | wire_extimagecapturesource "github.com/bnema/go-wayland-bindings/server/extimagecapturesource" | |||
| 22 | + | wire_extimagecopycapture "github.com/bnema/go-wayland-bindings/server/extimagecopycapture" | |||
| 23 | + | wire_extsessionlock "github.com/bnema/go-wayland-bindings/server/extsessionlock" | |||
| 24 | + | wire_extworkspace "github.com/bnema/go-wayland-bindings/server/extworkspace" | |||
| 25 | + | wire_fifo "github.com/bnema/go-wayland-bindings/server/fifo" | |||
| 26 | + | wire_fractionalscale "github.com/bnema/go-wayland-bindings/server/fractionalscale" | |||
| 27 | + | wire_idleinhibit "github.com/bnema/go-wayland-bindings/server/idleinhibit" | |||
| 28 | + | wire_inputmethod "github.com/bnema/go-wayland-bindings/server/inputmethod" | |||
| 29 | + | wire_keyboardshortcutsinhibit "github.com/bnema/go-wayland-bindings/server/keyboardshortcutsinhibit" | |||
| 30 | + | wire_linuxdmabuf "github.com/bnema/go-wayland-bindings/server/linuxdmabuf" | |||
| 31 | + | wire_linuxdrmsyncobj "github.com/bnema/go-wayland-bindings/server/linuxdrmsyncobj" | |||
| 32 | + | wire_pointerconstraints "github.com/bnema/go-wayland-bindings/server/pointerconstraints" | |||
| 33 | + | wire_pointerwarp "github.com/bnema/go-wayland-bindings/server/pointerwarp" | |||
| 34 | + | wire_presentationtime "github.com/bnema/go-wayland-bindings/server/presentationtime" | |||
| 35 | + | wire_primaryselection "github.com/bnema/go-wayland-bindings/server/primaryselection" | |||
| 36 | + | wire_relativepointer "github.com/bnema/go-wayland-bindings/server/relativepointer" | |||
| 37 | + | wire_securitycontext "github.com/bnema/go-wayland-bindings/server/securitycontext" | |||
| 38 | + | wire_kdedecoration "github.com/bnema/go-wayland-bindings/server/serverdecoration" | |||
| 39 | + | wire_tearingcontrol "github.com/bnema/go-wayland-bindings/server/tearingcontrol" | |||
| 40 | + | wire_textinput "github.com/bnema/go-wayland-bindings/server/textinput" | |||
| 41 | + | wire_viewporter "github.com/bnema/go-wayland-bindings/server/viewporter" | |||
| 42 | + | wire_virtualkeyboard "github.com/bnema/go-wayland-bindings/server/virtualkeyboard" | |||
| 43 | + | wire_wayland "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 44 | + | wire_wlrforeigntoplevel "github.com/bnema/go-wayland-bindings/server/wlrforeigntoplevelmanagement" | |||
| 45 | + | wire_wlrlayershell "github.com/bnema/go-wayland-bindings/server/wlrlayershell" | |||
| 46 | + | wire_wlroutputmanagement "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |||
| 47 | + | wire_wlroutputpower "github.com/bnema/go-wayland-bindings/server/wlroutputpowermanagement" | |||
| 48 | + | wire_wlrscreencopy "github.com/bnema/go-wayland-bindings/server/wlrscreencopy" | |||
| 49 | + | wire_xdgactivation "github.com/bnema/go-wayland-bindings/server/xdgactivation" | |||
| 50 | + | wire_xdgoutput "github.com/bnema/go-wayland-bindings/server/xdgoutput" | |||
| 51 | + | wire_xdgshell "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 13 | wire_imagecapture "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | 52 | wire_imagecapture "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | ||
| 14 | - | wire_alphamodifier "github.com/bnema/purego-libwayland/protocol/alphamodifier" | |||
| 15 | - | wire_colormanagement "github.com/bnema/purego-libwayland/protocol/colormanagement" | |||
| 16 | - | wire_colorrepresentation "github.com/bnema/purego-libwayland/protocol/colorrepresentation" | |||
| 17 | - | wire_committiming "github.com/bnema/purego-libwayland/protocol/committiming" | |||
| 18 | - | wire_cursorshape "github.com/bnema/purego-libwayland/protocol/cursorshape" | |||
| 19 | - | wire_drmlease "github.com/bnema/purego-libwayland/protocol/drmlease" | |||
| 20 | - | wire_extdatacontrol "github.com/bnema/purego-libwayland/protocol/extdatacontrol" | |||
| 21 | - | wire_extidlenotify "github.com/bnema/purego-libwayland/protocol/extidlenotify" | |||
| 22 | - | wire_extimagecapturesource "github.com/bnema/purego-libwayland/protocol/extimagecapturesource" | |||
| 23 | - | wire_extimagecopycapture "github.com/bnema/purego-libwayland/protocol/extimagecopycapture" | |||
| 24 | - | wire_extsessionlock "github.com/bnema/purego-libwayland/protocol/extsessionlock" | |||
| 25 | - | wire_extworkspace "github.com/bnema/purego-libwayland/protocol/extworkspace" | |||
| 26 | - | wire_fifo "github.com/bnema/purego-libwayland/protocol/fifo" | |||
| 27 | - | wire_fractionalscale "github.com/bnema/purego-libwayland/protocol/fractionalscale" | |||
| 28 | - | wire_idleinhibit "github.com/bnema/purego-libwayland/protocol/idleinhibit" | |||
| 29 | - | wire_inputmethod "github.com/bnema/purego-libwayland/protocol/inputmethod" | |||
| 30 | - | wire_kdedecoration "github.com/bnema/purego-libwayland/protocol/kdedecoration" | |||
| 31 | - | wire_keyboardshortcutsinhibit "github.com/bnema/purego-libwayland/protocol/keyboardshortcutsinhibit" | |||
| 32 | - | wire_linuxdmabuf "github.com/bnema/purego-libwayland/protocol/linuxdmabuf" | |||
| 33 | - | wire_linuxdrmsyncobj "github.com/bnema/purego-libwayland/protocol/linuxdrmsyncobj" | |||
| 34 | - | wire_pointerconstraints "github.com/bnema/purego-libwayland/protocol/pointerconstraints" | |||
| 35 | - | wire_pointerwarp "github.com/bnema/purego-libwayland/protocol/pointerwarp" | |||
| 36 | - | wire_presentationtime "github.com/bnema/purego-libwayland/protocol/presentationtime" | |||
| 37 | - | wire_primaryselection "github.com/bnema/purego-libwayland/protocol/primaryselection" | |||
| 38 | - | wire_relativepointer "github.com/bnema/purego-libwayland/protocol/relativepointer" | |||
| 39 | - | wire_securitycontext "github.com/bnema/purego-libwayland/protocol/securitycontext" | |||
| 40 | - | wire_tearingcontrol "github.com/bnema/purego-libwayland/protocol/tearingcontrol" | |||
| 41 | - | wire_textinput "github.com/bnema/purego-libwayland/protocol/textinput" | |||
| 42 | - | wire_viewporter "github.com/bnema/purego-libwayland/protocol/viewporter" | |||
| 43 | - | wire_virtualkeyboard "github.com/bnema/purego-libwayland/protocol/virtualkeyboard" | |||
| 44 | - | wire_wayland "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 45 | - | wire_wlrforeigntoplevel "github.com/bnema/purego-libwayland/protocol/wlrforeigntoplevel" | |||
| 46 | - | wire_wlrlayershell "github.com/bnema/purego-libwayland/protocol/wlrlayershell" | |||
| 47 | - | wire_wlroutputmanagement "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |||
| 48 | - | wire_wlroutputpower "github.com/bnema/purego-libwayland/protocol/wlroutputpower" | |||
| 49 | - | wire_wlrscreencopy "github.com/bnema/purego-libwayland/protocol/wlrscreencopy" | |||
| 50 | - | wire_xdgactivation "github.com/bnema/purego-libwayland/protocol/xdgactivation" | |||
| 51 | - | wire_xdgoutput "github.com/bnema/purego-libwayland/protocol/xdgoutput" | |||
| 52 | - | wire_xdgshell "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 53 | "github.com/bnema/purego-libwayland/server" | 53 | "github.com/bnema/purego-libwayland/server" | ||
| 54 | "github.com/bnema/wlturbo" | 54 | "github.com/bnema/wlturbo" | ||
| 55 | client_alphamodifier "github.com/bnema/wlturbo/protocol/alphamodifier" | 55 | client_alphamodifier "github.com/bnema/wlturbo/protocol/alphamodifier" | ||
M internal/adapters/wayland/workspaces.go +2 -2
| @@ -4,10 +4,10 @@ import ( | |||
| 4 | 4 | "context" | |
| 5 | 5 | "encoding/binary" | |
| 6 | 6 | ||
| 7 | + | ext "github.com/bnema/go-wayland-bindings/server/extworkspace" | |
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | 9 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | |
| 8 | 10 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | ext "github.com/bnema/purego-libwayland/protocol/extworkspace" | |
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 11 | 11 | "github.com/bnema/purego-libwayland/server" | |
| 12 | 12 | ) | |
| 13 | 13 | ||
| @@ -4,10 +4,10 @@ import ( | |||||
| 4 | "context" | 4 | "context" | ||
| 5 | "encoding/binary" | 5 | "encoding/binary" | ||
| 6 | 6 | ||||
| 7 | + | ext "github.com/bnema/go-wayland-bindings/server/extworkspace" | |||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | 9 | "github.com/bnema/neferwl/internal/adapters/wayland/imagecapture" | ||
| 8 | "github.com/bnema/neferwl/internal/ports" | 10 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | ext "github.com/bnema/purego-libwayland/protocol/extworkspace" | |||
| 10 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 11 | "github.com/bnema/purego-libwayland/server" | 11 | "github.com/bnema/purego-libwayland/server" | ||
| 12 | ) | 12 | ) | ||
| 13 | 13 | ||||
M internal/adapters/wayland/workspaces_sensitive_test.go +1 -1
| @@ -4,8 +4,8 @@ import ( | |||
| 4 | 4 | "testing" | |
| 5 | 5 | "time" | |
| 6 | 6 | ||
| 7 | + | ext "github.com/bnema/go-wayland-bindings/server/extworkspace" | |
| 7 | 8 | "github.com/bnema/neferwl/internal/ports" | |
| 8 | - | ext "github.com/bnema/purego-libwayland/protocol/extworkspace" | |
| 9 | 9 | "github.com/bnema/wlturbo" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| @@ -4,8 +4,8 @@ import ( | |||||
| 4 | "testing" | 4 | "testing" | ||
| 5 | "time" | 5 | "time" | ||
| 6 | 6 | ||||
| 7 | + | ext "github.com/bnema/go-wayland-bindings/server/extworkspace" | |||
| 7 | "github.com/bnema/neferwl/internal/ports" | 8 | "github.com/bnema/neferwl/internal/ports" | ||
| 8 | - | ext "github.com/bnema/purego-libwayland/protocol/extworkspace" | |||
| 9 | "github.com/bnema/wlturbo" | 9 | "github.com/bnema/wlturbo" | ||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
M internal/adapters/wayland/workspaces_test.go +1 -1
| @@ -7,10 +7,10 @@ import ( | |||
| 7 | 7 | "testing" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | + | ext "github.com/bnema/go-wayland-bindings/server/extworkspace" | |
| 10 | 11 | "github.com/bnema/neferwl/internal/adapters/workspaceid" | |
| 11 | 12 | "github.com/bnema/neferwl/internal/logging" | |
| 12 | 13 | "github.com/bnema/neferwl/internal/ports" | |
| 13 | - | ext "github.com/bnema/purego-libwayland/protocol/extworkspace" | |
| 14 | 14 | "github.com/bnema/wlturbo" | |
| 15 | 15 | ) | |
| 16 | 16 | ||
| @@ -7,10 +7,10 @@ import ( | |||||
| 7 | "testing" | 7 | "testing" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | + | ext "github.com/bnema/go-wayland-bindings/server/extworkspace" | |||
| 10 | "github.com/bnema/neferwl/internal/adapters/workspaceid" | 11 | "github.com/bnema/neferwl/internal/adapters/workspaceid" | ||
| 11 | "github.com/bnema/neferwl/internal/logging" | 12 | "github.com/bnema/neferwl/internal/logging" | ||
| 12 | "github.com/bnema/neferwl/internal/ports" | 13 | "github.com/bnema/neferwl/internal/ports" | ||
| 13 | - | ext "github.com/bnema/purego-libwayland/protocol/extworkspace" | |||
| 14 | "github.com/bnema/wlturbo" | 14 | "github.com/bnema/wlturbo" | ||
| 15 | ) | 15 | ) | ||
| 16 | 16 | ||||
M internal/adapters/wayland/xdg.go +2 -2
| @@ -3,9 +3,9 @@ package wayland | |||
| 3 | 3 | import ( | |
| 4 | 4 | "encoding/binary" | |
| 5 | 5 | ||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |
| 7 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 6 | 8 | "github.com/bnema/neferwl/internal/ports" | |
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |
| 8 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 9 | 9 | "github.com/bnema/purego-libwayland/server" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| @@ -3,9 +3,9 @@ package wayland | |||||
| 3 | import ( | 3 | import ( | ||
| 4 | "encoding/binary" | 4 | "encoding/binary" | ||
| 5 | 5 | ||||
| 6 | + | "github.com/bnema/go-wayland-bindings/server/wayland" | |||
| 7 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 6 | "github.com/bnema/neferwl/internal/ports" | 8 | "github.com/bnema/neferwl/internal/ports" | ||
| 7 | - | "github.com/bnema/purego-libwayland/protocol/wayland" | |||
| 8 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 9 | "github.com/bnema/purego-libwayland/server" | 9 | "github.com/bnema/purego-libwayland/server" | ||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
M internal/adapters/wayland/xdg_states_test.go +1 -1
| @@ -5,8 +5,8 @@ import ( | |||
| 5 | 5 | "slices" | |
| 6 | 6 | "testing" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |
| 8 | 9 | "github.com/bnema/neferwl/internal/ports" | |
| 9 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | func TestToplevelStates(t *testing.T) { | |
| @@ -5,8 +5,8 @@ import ( | |||||
| 5 | "slices" | 5 | "slices" | ||
| 6 | "testing" | 6 | "testing" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/go-wayland-bindings/server/xdgshell" | |||
| 8 | "github.com/bnema/neferwl/internal/ports" | 9 | "github.com/bnema/neferwl/internal/ports" | ||
| 9 | - | "github.com/bnema/purego-libwayland/protocol/xdgshell" | |||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
| 12 | func TestToplevelStates(t *testing.T) { | 12 | func TestToplevelStates(t *testing.T) { | ||
M internal/app/outputapply_e2e_test.go +1 -1
| @@ -7,9 +7,9 @@ import ( | |||
| 7 | 7 | "testing" | |
| 8 | 8 | "time" | |
| 9 | 9 | ||
| 10 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |
| 10 | 11 | "github.com/bnema/neferwl/internal/adapters/config" | |
| 11 | 12 | "github.com/bnema/neferwl/internal/ports" | |
| 12 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |
| 13 | 13 | "github.com/bnema/wlturbo" | |
| 14 | 14 | client "github.com/bnema/wlturbo/protocol/outputmanagement" | |
| 15 | 15 | ) | |
| @@ -7,9 +7,9 @@ import ( | |||||
| 7 | "testing" | 7 | "testing" | ||
| 8 | "time" | 8 | "time" | ||
| 9 | 9 | ||||
| 10 | + | wlr "github.com/bnema/go-wayland-bindings/server/wlroutputmanagement" | |||
| 10 | "github.com/bnema/neferwl/internal/adapters/config" | 11 | "github.com/bnema/neferwl/internal/adapters/config" | ||
| 11 | "github.com/bnema/neferwl/internal/ports" | 12 | "github.com/bnema/neferwl/internal/ports" | ||
| 12 | - | wlr "github.com/bnema/purego-libwayland/protocol/wlroutputmanagement" | |||
| 13 | "github.com/bnema/wlturbo" | 13 | "github.com/bnema/wlturbo" | ||
| 14 | client "github.com/bnema/wlturbo/protocol/outputmanagement" | 14 | client "github.com/bnema/wlturbo/protocol/outputmanagement" | ||
| 15 | ) | 15 | ) | ||