From 2a3fa6a4be5b1e0c5e3da3531356383d3b85cea1 Mon Sep 17 00:00:00 2001 From: kanishka-linux Date: Wed, 30 Dec 2020 20:55:52 +0530 Subject: [PATCH] disable detached-video-mode when using libmpv render api on linux and windows due to unpredictable behaviour --- kawaii_player/widgets/traywidget.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kawaii_player/widgets/traywidget.py b/kawaii_player/widgets/traywidget.py index c715136d..657b9600 100644 --- a/kawaii_player/widgets/traywidget.py +++ b/kawaii_player/widgets/traywidget.py @@ -387,8 +387,10 @@ def setup_globals(self, width=None, height=None): screen_height = height def _detach_video(self): - if ui.player_val == "libmpv": - ui.tab_5.init_mpv_again() + if ui.player_val == "libmpv" and platform.system().lower() in ["linux", "windows"]: + # disabling detached-video-mode when using libmpv on linux and windows + # due to unpredictable behaviour of opengl-render api + return 0 cur_label_num = ui.thumbnail_label_number[0] txt = self.d_vid.text() ui.float_window_open = True