~elementary-os/elementaryos/os-patch-mutter-bionic

« back to all changes in this revision

Viewing changes to src/wayland/meta-wayland-private.h

  • Committer: RabbitBot
  • Date: 2018-04-11 14:49:36 UTC
  • Revision ID: rabbitbot@elementary.io-20180411144936-hgymqa9d8d1xfpbh
Initial import, version 3.28.0-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2012 Intel Corporation
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License as
 
6
 * published by the Free Software Foundation; either version 2 of the
 
7
 * License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
17
 * 02111-1307, USA.
 
18
 */
 
19
 
 
20
#ifndef META_WAYLAND_PRIVATE_H
 
21
#define META_WAYLAND_PRIVATE_H
 
22
 
 
23
#include <wayland-server.h>
 
24
#include <clutter/clutter.h>
 
25
 
 
26
#include <glib.h>
 
27
 
 
28
#include "window-private.h"
 
29
#include <meta/meta-cursor-tracker.h>
 
30
 
 
31
#include "meta-wayland.h"
 
32
#include "meta-wayland-versions.h"
 
33
#include "meta-wayland-surface.h"
 
34
#include "meta-wayland-seat.h"
 
35
#include "meta-wayland-pointer-gestures.h"
 
36
#include "meta-wayland-tablet-manager.h"
 
37
 
 
38
typedef struct _MetaXWaylandSelection MetaXWaylandSelection;
 
39
 
 
40
typedef struct
 
41
{
 
42
  struct wl_list link;
 
43
  struct wl_resource *resource;
 
44
  MetaWaylandSurface *surface;
 
45
} MetaWaylandFrameCallback;
 
46
 
 
47
typedef struct
 
48
{
 
49
  int display_index;
 
50
  char *lock_file;
 
51
  int abstract_fd;
 
52
  int unix_fd;
 
53
  struct wl_client *client;
 
54
  struct wl_resource *xserver_resource;
 
55
  char *display_name;
 
56
 
 
57
  GCancellable *xserver_died_cancellable;
 
58
  GSubprocess *proc;
 
59
  GMainLoop *init_loop;
 
60
 
 
61
  MetaXWaylandSelection *selection_data;
 
62
} MetaXWaylandManager;
 
63
 
 
64
struct _MetaWaylandCompositor
 
65
{
 
66
  struct wl_display *wayland_display;
 
67
  const char *display_name;
 
68
  GHashTable *outputs;
 
69
  struct wl_list frame_callbacks;
 
70
 
 
71
  MetaXWaylandManager xwayland_manager;
 
72
 
 
73
  MetaWaylandSeat *seat;
 
74
  MetaWaylandTabletManager *tablet_manager;
 
75
};
 
76
 
 
77
#endif /* META_WAYLAND_PRIVATE_H */