aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index fed89cd..80e7434 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -498,11 +498,7 @@ bool CMainApplication::BInit()
return false;
}
- int screen_count = ScreenCount(x_display);
- for(int i = 0; i < screen_count; ++i)
- {
- XCompositeRedirectSubwindows(x_display, RootWindow(x_display, i), CompositeRedirectAutomatic);
- }
+ XCompositeRedirectWindow(x_display, src_window_id, CompositeRedirectAutomatic);
if ( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_TIMER ) < 0 )
{