From b1ca59d8929e43bed637859649da702e18bd2981 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Sat, 10 Feb 2018 18:01:56 +0000 Subject: [PATCH] Add handling of wayland specifics so we can show our window fixes #1 --- ui/drivers/efl/efldriver.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/drivers/efl/efldriver.go b/ui/drivers/efl/efldriver.go index f904946ede..83f2e1a50b 100644 --- a/ui/drivers/efl/efldriver.go +++ b/ui/drivers/efl/efldriver.go @@ -1,8 +1,10 @@ package efl -// #cgo pkg-config: ecore ecore-evas evas +// #cgo pkg-config: ecore ecore-evas ecore-wl2 evas +// #cgo CFLAGS: -DEFL_BETA_API_SUPPORT=1 // #include // #include +// #include // #include import "C" import "fmt" @@ -47,6 +49,11 @@ func (d EFLDriver) CreateWindow(title string) ui.Window { } w.SetTitle(title) + if engine == "wayland_shm" { + win := C.ecore_evas_wayland2_window_get(w.ee) + C.ecore_wl2_window_type_set(win, C.ECORE_WL2_WINDOW_TYPE_TOPLEVEL) + } + C.ecore_evas_show(ee) return w }