diff options
author | Adam Jackson <ajax@redhat.com> | 2008-10-31 09:58:01 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-12-03 18:12:01 -0500 |
commit | f90b368689fe1eb073f205ca19ad61d03c6930b7 (patch) | |
tree | 3ca6191ac17145bcf83c2bf1f97ce923071f5334 /mini-wm.c | |
parent | 0b41f2deb4e22172c6219338d5c33aed033c3133 (diff) | |
download | anaconda-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |