From f90b368689fe1eb073f205ca19ad61d03c6930b7 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 31 Oct 2008 09:58:01 -0400 Subject: mini-wm: Turn on automatic window redirection. --- mini-wm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mini-wm.c') 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 #include +#include 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); -- cgit