Conversion to using agl-compositor 48/24948/2
authorMarius Vlad <marius.vlad@collabora.com>
Sat, 20 Jun 2020 20:16:15 +0000 (23:16 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Thu, 9 Jul 2020 21:35:28 +0000 (00:35 +0300)
commit3ac1a25bcfa27594ffd44f5255017322d517cb40
tree030c89af09347bf65cef230fb54318771b201f33
parent6f05f0d2fb3619e85bee71a18c353908edf8bfe3
Conversion to using agl-compositor

- Use Qt/QtWayland to set-up an app_id for the main surface. We use that
  surface and pass it to waylandsink. Waylandsink create a sub-surface
  with the parent the Qt/QtWayland one.

- Install a handler for handling bus messages With it, it allows to pass
  the wl_display with the help of a context and the surface backing up
  the Widget.

- Installs a timer to wait for Qt to create/get the xdg_surface and
  attach a buffer to it.  Without we won't be able receive the commit
  for the parent event in order to handle it.

Bug-AGL: SPEC-3382

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I4237b7dad110ce36e3a01226e67cb508b6d9a6d9
app/CMakeLists.txt
app/main.cpp
app/protocol/agl-shell-desktop.xml [new file with mode: 0644]
app/shell-desktop.cpp [new file with mode: 0644]
app/shell-desktop.h [new file with mode: 0644]
app/surface.cpp
app/surface.hpp
conf.d/wgt/config.xml.in