wayland: Put MetaWaylandOutput struct in header file

We need this in MetaWaylandSurface to be able to send
wl_surface.enter/leave.

https://bugzilla.gnome.org/show_bug.cgi?id=744453
This commit is contained in:
Jonas Ådahl 2015-02-02 13:54:42 +08:00
parent 6ec7fa2cbd
commit 1576b7d5a6
2 changed files with 11 additions and 9 deletions

View File

@ -31,15 +31,6 @@
#include <string.h> #include <string.h>
typedef struct {
MetaMonitorInfo *monitor_info;
struct wl_global *global;
int x, y;
enum wl_output_transform transform;
GList *resources;
} MetaWaylandOutput;
static void static void
output_resource_destroy (struct wl_resource *res) output_resource_destroy (struct wl_resource *res)
{ {

View File

@ -25,8 +25,19 @@
#ifndef META_WAYLAND_OUTPUTS_H #ifndef META_WAYLAND_OUTPUTS_H
#define META_WAYLAND_OUTPUTS_H #define META_WAYLAND_OUTPUTS_H
#include "backends/meta-monitor-manager-private.h"
#include "meta-wayland-private.h" #include "meta-wayland-private.h"
typedef struct
{
MetaMonitorInfo *monitor_info;
struct wl_global *global;
int x, y;
enum wl_output_transform transform;
GList *resources;
} MetaWaylandOutput;
void meta_wayland_outputs_init (MetaWaylandCompositor *compositor); void meta_wayland_outputs_init (MetaWaylandCompositor *compositor);
#endif /* META_WAYLAND_OUTPUTS_H */ #endif /* META_WAYLAND_OUTPUTS_H */