Skip to content

Commit

Permalink
Add handling of wayland specifics so we can show our window
Browse files Browse the repository at this point in the history
fixes #1
  • Loading branch information
andydotxyz committed Feb 10, 2018
1 parent bd7d48d commit b1ca59d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/drivers/efl/efldriver.go
Original file line number Diff line number Diff line change
@@ -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 <Ecore.h>
// #include <Ecore_Evas.h>
// #include <Ecore_Wl2.h>
// #include <Evas.h>
import "C"
import "fmt"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit b1ca59d

Please sign in to comment.