Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docking] Window cannot be dragged out of current monitor #157

Closed
garyng opened this issue Mar 24, 2020 · 5 comments
Closed

[docking] Window cannot be dragged out of current monitor #157

garyng opened this issue Mar 24, 2020 · 5 comments

Comments

@garyng
Copy link

garyng commented Mar 24, 2020

In the docking branch, the window cannot be dragged out of the current monitor:

2020-03-24_21-48-38

@mellinoe
Copy link
Collaborator

This is working for me. Have you changed anything about the sample program, or have you built the native DLL yourself, or anything like that? The only other difference I note is that your "first monitor" is on the right, and your "second" is on the left. Mine are the opposite, and I wonder if that has anything to do with it. Alternatively, there is this issue which describes some potential problems relating to different DPIs across monitors. Does any of that sound like it might affect you?

imgui_docking_monitors

@garyng
Copy link
Author

garyng commented Mar 25, 2020

The only thing I changed is I removed vulkan as the preferred backend (I can't make it run with vulkan though).

After some experiments, I think the arrangement of monitors do make a difference! This is the my setup:
image

1: 1920x1080
2: 2560x1080
3: 1080x1920

I couldn't move my window from 1 to 3, or 2 to 3:
2020-03-25_13-19-37

2020-03-25_13-21-19

Seems like the monitor boundary is calculated wrongly?
2020-03-25_13-29-41

Weirdly, I cant even move the window out of the main viewport on monitor 3 (the horizontal one):

2020-03-25_13-24-21

This is the metric window showing the monitors info:
image

It only shows 2 monitors instead of 3...

@garyng
Copy link
Author

garyng commented Mar 25, 2020

So monitor 3 was missing from the monitors list, this is probably the cause instead of the monitor arrangement.

All 3 monitors showed up in the official imgui demo app:
image

@mellinoe
Copy link
Collaborator

Can you try out the latest change in the docking branch that I just pushed?

69ffb61

@garyng
Copy link
Author

garyng commented Mar 29, 2020

Yeah, it works now! A quick fix!

Thanks!

@garyng garyng closed this as completed Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants