From 9f322aff8bc16195a7950cddb0441e8f064c4eff Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 29 Apr 2020 20:30:43 +0200 Subject: Fix for DE (xfce4). Only redirect the target window --- src/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 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 ) { -- cgit v1.2.3