summaryrefslogtreecommitdiff
path: root/fftools/ffplay.c
diff options
context:
space:
mode:
authorZane van Iperen <zane@zanevaniperen.com>2021-10-27 02:00:38 +1000
committerZane van Iperen <zane@zanevaniperen.com>2021-10-29 12:17:41 +1000
commit783935de18f4b4c0e5dab7d328648af034a7e676 (patch)
treeb9114116c74d0d1cff1451055d8e9e9351885fba /fftools/ffplay.c
parent947d0ce0ea1e54e67bd42a566e7fc1b30d3c7e95 (diff)
downloadffmpeg-783935de18f4b4c0e5dab7d328648af034a7e676.tar.gz
fftools/ffplay: don't disable x11 compositing
Prevents desktop stutters caused by the change (specifically on KDE). We're not a game, we don't actually need it disabled. Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
Diffstat (limited to 'fftools/ffplay.c')
-rw-r--r--fftools/ffplay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fftools/ffplay.c b/fftools/ffplay.c
index ccea0e4578..4b2e69e613 100644
--- a/fftools/ffplay.c
+++ b/fftools/ffplay.c
@@ -3746,6 +3746,10 @@ int main(int argc, char **argv)
flags |= SDL_WINDOW_BORDERLESS;
else
flags |= SDL_WINDOW_RESIZABLE;
+
+#ifdef SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR
+ SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
+#endif
window = SDL_CreateWindow(program_name, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, default_width, default_height, flags);
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
if (window) {