mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
app/internal/window: add errno to wl_display_connect errors
Updates #40 Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -1089,10 +1089,10 @@ func waylandConnect() error {
|
|||||||
return fmt.Errorf("wayland: %v", err)
|
return fmt.Errorf("wayland: %v", err)
|
||||||
}
|
}
|
||||||
c.xkb = xkb
|
c.xkb = xkb
|
||||||
c.disp = C.wl_display_connect(nil)
|
c.disp, err = C.wl_display_connect(nil)
|
||||||
if c.disp == nil {
|
if c.disp == nil {
|
||||||
c.destroy()
|
c.destroy()
|
||||||
return errors.New("wayland: wl_display_connect failed")
|
return fmt.Errorf("wayland: wl_display_connect failed: %v", err)
|
||||||
}
|
}
|
||||||
reg := C.wl_display_get_registry(c.disp)
|
reg := C.wl_display_get_registry(c.disp)
|
||||||
if reg == nil {
|
if reg == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user