summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2017-09-11 11:02:14 -0400
committerraveit65 <[email protected]>2017-11-10 19:51:41 +0100
commitac93ac087d5a443eae0d052ba9d0bbb38ca44214 (patch)
tree71db14413cb062858bc6d730e30430c3d19e66e2 /src/core
parent5257294e75dd188a26a2848a41370fa3770d2447 (diff)
downloadmarco-ac93ac087d5a443eae0d052ba9d0bbb38ca44214.tar.bz2
marco-ac93ac087d5a443eae0d052ba9d0bbb38ca44214.tar.xz
XPresent extension support - first pass
Diffstat (limited to 'src/core')
-rw-r--r--src/core/display.c4
-rw-r--r--src/core/screen.c9
2 files changed, 9 insertions, 4 deletions
diff --git a/src/core/display.c b/src/core/display.c
index 9601b4ed..a721def4 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -69,6 +69,10 @@
#include <X11/extensions/Xrender.h>
#endif
+#ifdef HAVE_PRESENT
+ #include <X11/extensions/Xpresent.h>
+#endif
+
#ifdef HAVE_XKB
#include <X11/XKBlib.h>
#endif
diff --git a/src/core/screen.c b/src/core/screen.c
index 28d2febf..308795e3 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -740,15 +740,16 @@ 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);
+ g_free (info);
+ continue;
}
else
{
- info->xwindow = children[i];
- }
+ info->xwindow = children[i];
+ }
result = g_list_prepend (result, info);
}