google-deepmind / google-deepmind/mujoco
Running mujoco.viewer in a Wayland session results in borderless window
- Dominant language
- C++
- Stars
- 15.2k
- Forks
- 1.8k
- Avg merge
- 10d 16h
- Merged PRs (30d)
- 25
Description
Running the `mujoco.viewer` python binding results in a borderless window. The program will continue to work normally, but cannot be closed except by a keyboard interrupt. I have attached an image showing how the windowed screen looks like:

Running the command also results in the following warnings:
```bash
~$ python3 -m mujoco.viewer
/home/zmk5/.local/lib/python3.10/site-packages/glfw/__init__.py:916: GLFWError: (65544) b'Wayland: Window position retrieval not supported'
warnings.warn(message, GLFWError)
/home/zmk5/.local/lib/python3.10/site-packages/glfw/__init__.py:916: GLFWError: (65544) b'Wayland: Standard cursor shape unavailable'
warnings.warn(message, GLFWError)
```
I've tested this on sample code located [here](https://github.com/kevinzakka/mjctrl/blob/main/diffik.py) and results in the same borderless window and warnings.
- Include the following context:
- Operating system: Ubuntu 22.04.3 (amd64)
- MuJoCo version: 3.1.1
- For Python issues, what bindings are you using (i.e `mujoco`, `dm_control`, `mujoco-py`)?
- This is with the `mujoco` Python bindings.
Contributor guide
Assessment
This issue has not been assessed yet.