Skip to content

UI widgets drawn in wrong place after toggling fullscreen → windowed (click targets remain at old positions) #3015

@Aman1919

Description

@Aman1919

Intro

Hi!

I’m a BCA graduate from Maharaja Surajmal Institute. I discovered MuJoCo while exploring machine learning and open-source, and it really caught my interest, which led me to start learning more about it.

My setup

1 was using MuJoCo v3.4.1 on Ubuntu 24.04.3 LTS, and I performed debugging using Visual Studio Code.

What's happening? What did you expect?

After switching the MuJoCo window from fullscreen back to windowed, the UI widgets (buttons, panels) are visually shifted (e.g. the Fullscreen button draws higher), but their clickable areas remain at the previous positions. Clicking the visible widget does nothing; clicking where it was before (now empty) triggers the action.

Video : -

mujoco_toggle_fullscreen_bug_before.mp4

Steps for reproduction

  1. Open mujoco (no special model required).
  2. From the UI, toggle Fullscreen (Option → Fullscreen or the fullscreen button).
  3. Toggle Fullscreen again to return to windowed.
  4. Observe that some UI elements are visually misplaced while clicks still register at the old coordinates.

Minimal model for reproduction

No response

Code required for reproduction

No response

Confirmations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions