12 #include "WinSystemWayland.h" 14 #include <wayland-webos-protocols.hpp> 15 #include <webos-helpers/libhelpers.h> 24 bool InitWindowSystem()
override;
43 bool SupportsExportedWindow();
45 IShellSurface* CreateShellSurface(
const std::string& name)
override;
46 bool CreateNewWindow(
const std::string& name,
bool fullScreen,
RESOLUTION_INFO& res)
override;
48 bool HasCursor()
override;
49 void OnConfigure(std::uint32_t serial,
CSizeInt size, IShellSurface::StateBitset state)
override;
52 std::unique_ptr<KODI::WINDOWING::IOSScreenSaver> GetOSScreenSaverImpl()
override;
53 std::unique_ptr<CSeat> CreateSeat(std::uint32_t name, wayland::seat_t& seat)
override;
56 static bool OnAppLifecycleEventWrapper(LSHandle* sh, LSMessage* reply,
void* ctx);
57 bool OnAppLifecycleEvent(LSHandle* sh, LSMessage* reply);
59 std::unique_ptr<CRegistry> m_webosRegistry;
62 std::string m_exportedWindowName;
63 wayland::compositor_t m_compositor;
64 wayland::webos_exported_t m_exportedSurface;
65 wayland::webos_foreign_t m_webosForeign;
67 std::unique_ptr<HContext, int (*)(HContext*)> m_requestContext{
new HContext(),
68 HUnregisterServiceCallback};
70 bool m_resumePlayback{
false};
std::string GetExportedWindowName()
Gets the exported window name.
Definition: WinSystemWaylandWebOS.cpp:106
Definition: WinSystemWayland.h:47
bool SetExportedWindow(CRect orig, CRect src, CRect dest)
Sets up the an exported window for display.
Definition: WinSystemWaylandWebOS.cpp:111
Provide info of a resolution.
Definition: Resolution.h:66
Abstraction for shell surfaces to support multiple protocols such as wl_shell (for compatibility) and...
Definition: ShellSurface.h:34
Definition: Connection.h:19
Definition: WinSystemWaylandWebOS.h:20