1 #ifndef XCOMPOSITEHANDLER_H
2 #define XCOMPOSITEHANDLER_H
4 #include "wayland_wrapper/wlcompositor.h"
6 #include "xlibinclude.h"
8 class XCompositeHandler : public Wayland::Object<struct wl_object>
11 XCompositeHandler(Wayland::Compositor *compositor, Display *display, QWidget *topLevelWidget);
12 void createBuffer(struct wl_client *client, uint32_t id, Window window, const QSize &size, struct wl_visual *visual);
14 static void send_root_information(struct wl_client *client, struct wl_object *global);
15 static struct wl_xcomposite_interface xcomposite_interface;
18 Wayland::Compositor *mCompositor;
19 QWidget *mTopLevelWidget;
20 QWidget *mFakeRootWidget;
23 static void create_buffer(struct wl_client *client,
24 struct wl_xcomposite *xcomposite,
29 struct wl_visual *visual);
33 #endif // XCOMPOSITEHANDLER_H