Skip to content

Spawn the window of the offscreen context out of focus #510

@iSaran

Description

@iSaran

I am creating an offscreen context using the following:

offscreen = MjRenderContextOffscreen(sim, 0)

This creates a window which spawns in front of the other windows (in focus) that I have open. Is this the intended behavior?

I have a setup in which I create multiple mujoco sessions overtime and I run them in the same pc, which I am working on. This means that the spawning windows interrupt my workflow. One fix is to minimize the window right after the context construction with:

glfw.iconify_window(offscreen.opengl_context.window)

This is not a correct solution though because even momentarily the focus goes to the Mujoco window.

Can I create this context with its window spawning out of focus from the very start?

My mujoco-py version is 1.50.1.68.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions