aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-04-29 20:30:43 +0200
committerdec05eba <dec05eba@protonmail.com>2020-04-29 20:30:43 +0200
commit9f322aff8bc16195a7950cddb0441e8f064c4eff (patch)
tree3f75e8fb827b72be7cecf711d4b3df6b8e901dcf /src
parent07643327ae81657953e158fc6390a91420ddad1f (diff)
Fix for DE (xfce4). Only redirect the target window
Diffstat (limited to 'src')
-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 )
{