summaryrefslogtreecommitdiff
path: root/src/gui/kernel/qt_wayland_p.h
blob: a95ba0063afdd7b1cb4270f2a681465f2e812f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef QT_WAYLAND_P_H
#define QT_WAYLAND_P_H

#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <glib.h>
#include <glib-object.h>
#include <wayland-client.h>
#include <wayland-util.h>

// App global Wayland connection info

struct QWaylandData {
    int dri_fd;
    struct wl_display *display;
    struct wl_compositor *compositor;
    struct wl_output *output;
    struct wl_input_device *input_device;
    char *device_name;
    struct wl_list window_list;
    EGLDisplay dpy;
    EGLContext ctx;
    int x;
    int y;
    int width;
    int height;
};

extern QWaylandData *qWayland;

#endif /* QT_WAYLAND_P_H */