summaryrefslogtreecommitdiffstats
path: root/mini-wm.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-10-31 09:58:01 -0400
committerAdam Jackson <ajax@redhat.com>2008-12-03 18:12:01 -0500
commitf90b368689fe1eb073f205ca19ad61d03c6930b7 (patch)
tree3ca6191ac17145bcf83c2bf1f97ce923071f5334 /mini-wm.c
parent0b41f2deb4e22172c6219338d5c33aed033c3133 (diff)
downloadanaconda-f90b368689fe1eb073f205ca19ad61d03c6930b7.tar.gz
anaconda-f90b368689fe1eb073f205ca19ad61d03c6930b7.tar.xz
anaconda-f90b368689fe1eb073f205ca19ad61d03c6930b7.zip
mini-wm: Turn on automatic window redirection.
Diffstat (limited to 'mini-wm.c')
-rw-r--r--mini-wm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mini-wm.c b/mini-wm.c
index ada2c2d34..77561797e 100644
--- a/mini-wm.c
+++ b/mini-wm.c
@@ -25,6 +25,7 @@
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
+#include <X11/extensions/Xcomposite.h>
static gboolean
is_focusable (Window window)
@@ -93,6 +94,9 @@ mini_wm_start (void)
{
XWindowAttributes attrs;
+ XCompositeRedirectSubwindows (GDK_DISPLAY(), GDK_ROOT_WINDOW(),
+ CompositeRedirectAutomatic);
+
XGetWindowAttributes (GDK_DISPLAY(), GDK_ROOT_WINDOW(), &attrs);
XSelectInput (GDK_DISPLAY(), GDK_ROOT_WINDOW(),
attrs.your_event_mask | SubstructureNotifyMask);