mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
app/internal/window: rename wlConn to wlDisplay
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -55,7 +55,7 @@ import (
|
|||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
type wlConn struct {
|
type wlDisplay struct {
|
||||||
disp *C.struct_wl_display
|
disp *C.struct_wl_display
|
||||||
compositor *C.struct_wl_compositor
|
compositor *C.struct_wl_compositor
|
||||||
wm *C.struct_xdg_wm_base
|
wm *C.struct_xdg_wm_base
|
||||||
@@ -152,7 +152,7 @@ type wlOutput struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var connMu sync.Mutex
|
var connMu sync.Mutex
|
||||||
var conn *wlConn
|
var conn *wlDisplay
|
||||||
|
|
||||||
var (
|
var (
|
||||||
winMap = make(map[interface{}]*window)
|
winMap = make(map[interface{}]*window)
|
||||||
@@ -1092,7 +1092,7 @@ func detectUIScale() float32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func waylandConnect() error {
|
func waylandConnect() error {
|
||||||
c := new(wlConn)
|
c := new(wlDisplay)
|
||||||
conn = c
|
conn = c
|
||||||
xkb, err := xkb.New()
|
xkb, err := xkb.New()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -1154,7 +1154,7 @@ func waylandConnect() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *wlConn) destroy() {
|
func (c *wlDisplay) destroy() {
|
||||||
c.repeat.Stop(0)
|
c.repeat.Stop(0)
|
||||||
if c.xkb != nil {
|
if c.xkb != nil {
|
||||||
c.xkb.Destroy()
|
c.xkb.Destroy()
|
||||||
|
|||||||
Reference in New Issue
Block a user