summaryrefslogtreecommitdiff
path: root/src/compositor/meta-window-actor-x11.h
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-12-21 18:35:18 -0200
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-01-04 09:32:51 -0200
commit7e8fc135040f2018194b5ebc75eebe9e1762daa6 (patch)
tree2e920508cef78283d106586aaaa3d4216cda89cb /src/compositor/meta-window-actor-x11.h
parent60f7ff3a69255468974154d84fa5a06547314907 (diff)
downloadmutter-7e8fc135040f2018194b5ebc75eebe9e1762daa6.tar.gz
Add MetaWindowActorX11 and MetaWindowActorWayland
Those are stub specialized classes for MetaWindowActor. This will help ensuring that we do not execute X11-specific code paths on pure Wayland clients. The relationship between the window actor and the surface is the following: * Wayland: MetaWindowActorWayland + MetaSurfaceActorWayland * X11: MetaWindowActorX11 + MetaSurfaceActorX11 * Xwayland: MetaWindowActorX11 + MetaSurfaceActorWayland It is not possible to have MetaWindowActorWayland backed by a MetaSurfaceActorX11 surface. https://gitlab.gnome.org/GNOME/mutter/merge_requests/368
Diffstat (limited to 'src/compositor/meta-window-actor-x11.h')
-rw-r--r--src/compositor/meta-window-actor-x11.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/compositor/meta-window-actor-x11.h b/src/compositor/meta-window-actor-x11.h
new file mode 100644
index 000000000..5f20fc028
--- /dev/null
+++ b/src/compositor/meta-window-actor-x11.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2018 Endless, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ *
+ * Written by:
+ * Georges Basile Stavracas Neto <gbsneto@gnome.org>
+ */
+
+#ifndef META_WINDOW_ACTOR_X11_H
+#define META_WINDOW_ACTOR_X11_H
+
+#include "compositor/meta-window-actor-private.h"
+
+#define META_TYPE_WINDOW_ACTOR_X11 (meta_window_actor_x11_get_type())
+G_DECLARE_FINAL_TYPE (MetaWindowActorX11,
+ meta_window_actor_x11,
+ META, WINDOW_ACTOR_X11,
+ MetaWindowActor)
+
+#endif /* META_WINDOW_ACTOR_X11_H */