mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
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:
parent
4c6866741d
commit
6b82f61dba
@ -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. */
|
||||||
|
Loading…
Reference in New Issue
Block a user