Skip to content

Commit

Permalink
disable detached-video-mode when using libmpv render api on linux and…
Browse files Browse the repository at this point in the history
… windows due to unpredictable behaviour
  • Loading branch information
kanishka-linux committed Dec 30, 2020
1 parent 1c3368d commit 2a3fa6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kawaii_player/widgets/traywidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a3fa6a

Please sign in to comment.