diff options
author | Kimmo Hämäläinen <kimmo.hamalainen@nokia.com> | 2010-11-04 17:34:32 +0200 |
---|---|---|
committer | Kimmo Hämäläinen <kimmo.hamalainen@nokia.com> | 2010-11-04 17:34:32 +0200 |
commit | 658b1baedd51082cef57bf09d36c1a5aeb2b04ca (patch) | |
tree | 1c41c61fab617b97f2a3afe2363479cb625555ed /src/mcompositescene.cpp | |
parent | 1dde6f22162af9caf6b45b3f61e348eae97e9b18 (diff) |
Redirect root's children right from beginning to avoid double Expose
- agreed with graphics adaptation guys
Diffstat (limited to 'src/mcompositescene.cpp')
-rw-r--r-- | src/mcompositescene.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mcompositescene.cpp b/src/mcompositescene.cpp index ed4af90..63321d5 100644 --- a/src/mcompositescene.cpp +++ b/src/mcompositescene.cpp @@ -67,7 +67,8 @@ void MCompositeScene::prepareRoot() XSetWindowAttributes sattr; sattr.event_mask = SubstructureRedirectMask | SubstructureNotifyMask | StructureNotifyMask | PropertyChangeMask; - //XCompositeRedirectSubwindows (dpy, root, CompositeRedirectAutomatic); + // All newly mapped windows should be redirected to avoid double Expose + XCompositeRedirectSubwindows(dpy, root, CompositeRedirectManual); XChangeWindowAttributes(dpy, root, CWEventMask, &sattr); XSelectInput(dpy, root, SubstructureNotifyMask | SubstructureRedirectMask |