It seems that, due to a recent update, the mpv's appmenu no longer works under X11.
The WM_CLASS returned by xprop
is "gl", "mpv"
, but according to sxmo_hook_contextmenu.sh
, it used to be just "mpv".
I don't really see the reason for this change in MPV (might be an upstream bug?). The easy fix would be to replace *mpv*
by gl
in the contextmenu hook (maybe some other programs use gl
in their WM_CLASS though).
An other possibility would be to match against the full WM_CLASS instead of taking the first field.
The experience is really great so far, many thanks for the great work!
Looking more in detail at the code in
sxmo_wm.sh
for functionswayfocusedwindow
it seems very likely that the two proposed solutions would break MPV's appmenu on the wayland side (if the app_id ismpv
there).One more solution could be to manually set mpv's WM_CLASS via
xprop
, or to ask the MPV devs about the issue (it may be a bug).
The problem effectively occurs only on the X11 side. I will open an issue about that on mpv's repo.
Actually this is just normal mpv behaviour
This has been fixed by the following:
https://git.sr.ht/~mil/sxmo-utils/commit/54ebae73d39ca815f50970a839acbdd2de96a23f