summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2015-06-17 18:37:20 +0800
committerJasper St. Pierre <jstpierre@mecheye.net>2015-06-23 16:37:40 -0700
commit6b82f61dba6a569a5a2c240d08d3a600fd35b94d (patch)
treea90be108b4ee0273b23e2ff5be9a1fc93c86cce5
parent4c6866741d5ca53d028329f1626298985c005a0c (diff)
downloadmutter-6b82f61dba6a569a5a2c240d08d3a600fd35b94d.tar.gz
build: Fix non-wayland build
This fixes error introduced in 09120132ef87061d527b5324a14ab5950db3dc0a. https://bugzilla.gnome.org/show_bug.cgi?id=750552
-rw-r--r--src/core/window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 4443a2402..aec61db27 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -724,9 +724,11 @@ meta_window_should_attach_to_parent (MetaWindow *window)
static gboolean
client_window_should_be_mapped (MetaWindow *window)
{
+#ifdef HAVE_WAYLAND
if (window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND &&
!window->surface->buffer)
return FALSE;
+#endif
return !window->shaded;
}
@@ -1538,9 +1540,11 @@ meta_window_showing_on_its_workspace (MetaWindow *window)
gboolean
meta_window_should_be_showing (MetaWindow *window)
{
+#ifdef HAVE_WAYLAND
if (window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND &&
!window->surface->buffer)
return FALSE;
+#endif
/* Windows should be showing if they're located on the
* active workspace and they're showing on their own workspace. */