Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion usr/lib/hypnotix/hypnotix.py
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,10 @@ def reinit_mpv(self):
**options,
script_opts="osc-layout=box,osc-seekbarstyle=bar,osc-deadzonesize=0,osc-minmousemove=3",
input_default_bindings=True,
input_vo_keyboard=True,
# Under XWayland the embedded mpv window takes key presses first,
# so on_key_press_event never runs. It already forwards unhandled
# keys to mpv, so mpv's own bindings keep working.
input_vo_keyboard=os.environ.get("XDG_SESSION_TYPE") != "wayland",
osc=osc,
ytdl=True,
wid=str(self.mpv_drawing_area.get_window().get_xid())
Expand Down