The fix
Run this, then focus the desired running window
xprop WM_CLASS
The output will be something like
WM_CLASS(STRING) = "MATLAB R2024a", "MATLAB R2024a"
Run this, then focus the desired running window
xprop WM_CLASS
The output will be something like
WM_CLASS(STRING) = "MATLAB R2024a", "MATLAB R2024a"