From 99e0041e07bb3efe3f4253d995a58e7f214df35f Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Mon, 23 Oct 2017 16:31:52 -0400 Subject: Add stricter logic for running without XPresent support --- src/core/display.c | 4 ---- src/core/screen.c | 9 ++++----- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'src/core') diff --git a/src/core/display.c b/src/core/display.c index a721def4..9601b4ed 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -69,10 +69,6 @@ #include #endif -#ifdef HAVE_PRESENT - #include -#endif - #ifdef HAVE_XKB #include #endif diff --git a/src/core/screen.c b/src/core/screen.c index 308795e3..28d2febf 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -740,16 +740,15 @@ list_windows (MetaScreen *screen) children[i], &info->attrs); if (meta_error_trap_pop_with_return (screen->display, TRUE)) - { + { meta_verbose ("Failed to get attributes for window 0x%lx\n", children[i]); - g_free (info); - continue; + g_free (info); } else { - info->xwindow = children[i]; - } + info->xwindow = children[i]; + } result = g_list_prepend (result, info); } -- cgit v1.2.1