build: Fix non-wayland build

This fixes error introduced in 09120132ef.

https://bugzilla.gnome.org/show_bug.cgi?id=750552
This commit is contained in:
Ting-Wei Lan 2015-06-17 18:37:20 +08:00 committed by Jasper St. Pierre
parent 4c6866741d
commit 6b82f61dba

View File

@ -724,9 +724,11 @@ meta_window_should_attach_to_parent (MetaWindow *window)
static gboolean static gboolean
client_window_should_be_mapped (MetaWindow *window) client_window_should_be_mapped (MetaWindow *window)
{ {
#ifdef HAVE_WAYLAND
if (window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND && if (window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND &&
!window->surface->buffer) !window->surface->buffer)
return FALSE; return FALSE;
#endif
return !window->shaded; return !window->shaded;
} }
@ -1538,9 +1540,11 @@ meta_window_showing_on_its_workspace (MetaWindow *window)
gboolean gboolean
meta_window_should_be_showing (MetaWindow *window) meta_window_should_be_showing (MetaWindow *window)
{ {
#ifdef HAVE_WAYLAND
if (window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND && if (window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND &&
!window->surface->buffer) !window->surface->buffer)
return FALSE; return FALSE;
#endif
/* Windows should be showing if they're located on the /* Windows should be showing if they're located on the
* active workspace and they're showing on their own workspace. */ * active workspace and they're showing on their own workspace. */