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

Show new window/dialog on the same display #312

Merged
merged 2 commits into from
Oct 4, 2022
Merged

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented Oct 3, 2022

Tested manually on Windows/macOs/Linux with two displays. Tested the case when we disconnect one display.

The new behaviour of opening windows is different from platform default. Windows/macOS, for example, shows every new window slighly shifted in compare to the previous opened window. We on the other hand shift in compare to the previous focused window, not the opened.

RelNote:
Changed behaviour of the initial position of the new window. Now it shows on the display, where was the latest focused window

Fixes JetBrains/compose-multiplatform#1845

Tested manually on Windows/macOs/Linux with two displays. Tested the case when we disconnect one display.

The new behaviour of opening windows is different from platform default.
Windows/macOS, for example, shows every new window slighly shifted in compare to the previous opened window.
We on the other hand shift in compare to the previous focused window, not the opened.

RelNote:
Changed behaviour of the initial position of the new window. Now it shows on the display, where was the latest focused window

Fixes JetBrains/compose-multiplatform#1845
@igordmn igordmn requested a review from eymar October 3, 2022 16:14
@igordmn igordmn changed the title Show new window/dialog on the same display. Show new window/dialog on the same display Oct 3, 2022
Copy link
Collaborator

@eymar eymar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on mac os with main + external monitor.

Looks good to me!

Left a couple of questions.

@igordmn igordmn merged commit 52ab006 into jb-main Oct 4, 2022
@igordmn igordmn deleted the windowOnSameDisplay branch October 4, 2022 14:15
eymar pushed a commit that referenced this pull request Oct 26, 2022
* Show new window/dialog on the same display.

Tested manually on Windows/macOs/Linux with two displays. Tested the case when we disconnect one display.

The new behaviour of opening windows is different from platform default.
Windows/macOS, for example, shows every new window slighly shifted in compare to the previous opened window.
We on the other hand shift in compare to the previous focused window, not the opened.

RelNote:
Changed behaviour of the initial position of the new window. Now it shows on the display, where was the latest focused window

Fixes JetBrains/compose-multiplatform#1845

* Don't compute platformDefaultPosition every time when we change the position
eymar pushed a commit that referenced this pull request Nov 16, 2022
* Show new window/dialog on the same display.

Tested manually on Windows/macOs/Linux with two displays. Tested the case when we disconnect one display.

The new behaviour of opening windows is different from platform default.
Windows/macOS, for example, shows every new window slighly shifted in compare to the previous opened window.
We on the other hand shift in compare to the previous focused window, not the opened.

RelNote:
Changed behaviour of the initial position of the new window. Now it shows on the display, where was the latest focused window

Fixes JetBrains/compose-multiplatform#1845

* Don't compute platformDefaultPosition every time when we change the position
eymar pushed a commit that referenced this pull request Jan 13, 2023
* Show new window/dialog on the same display.

Tested manually on Windows/macOs/Linux with two displays. Tested the case when we disconnect one display.

The new behaviour of opening windows is different from platform default.
Windows/macOS, for example, shows every new window slighly shifted in compare to the previous opened window.
We on the other hand shift in compare to the previous focused window, not the opened.

RelNote:
Changed behaviour of the initial position of the new window. Now it shows on the display, where was the latest focused window

Fixes JetBrains/compose-multiplatform#1845

* Don't compute platformDefaultPosition every time when we change the position
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

Successfully merging this pull request may close these issues.

How to open Window/Dialog on the same screen as launcher/trigger, when working with multiple screen
2 participants