Skip to content

Moving windows in the client application doesn't work properly when using Sample Dual UI in mirror mode. #61

@arnaud-jamin

Description

@arnaud-jamin

Describe the bug
When trying to move a window in the client application when using Sample Dual UI in mirror mode, the window teleport to a fixed location.

To Reproduce

  1. Launch the sample in SampleDualUI
  2. launch the server
  3. connect to the server
  4. Choose Mirror UI
  5. Move a window on the server: it works
  6. Move a window on the client: it gets teleported

Expected behavior
The window on the client should not teleport to a fixed location, but should follow the mouse

Screenshots
image

Additional context
This is because the last mouse pos received on the client is given to imgui on a new frame, even if this mouse position is not relevant anymore:

io.AddMousePosEvent(pCmdInput->mMousePos[0], pCmdInput->mMousePos[1]);

Callstack:

ProcessInputData
NewFrame

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions