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

Wrong window size on Multi-screen setup #811

Open
JaoPedroDev opened this issue Jan 27, 2025 · 5 comments
Open

Wrong window size on Multi-screen setup #811

JaoPedroDev opened this issue Jan 27, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@JaoPedroDev
Copy link
Contributor

Short Summary

I have a weird problem with multi-screen setup, I have two screens, one 720p another 1080p, the problem is that Kando window only gets the size of the 720p screen, disabling this monitor the problem goes away.

Image

Steps to Reproduce the Issue

  1. Install kando on Arch
  2. Run it
  3. Open any menu or Settings screen

Kando Version

v1.7.0

Installation Method

Via a package manger

Desktop Environment

KDE on Wayland

Environment Version

KDE Plasma 6.2.5 on CachyOS(Arch)

Additional Information

No response

@JaoPedroDev JaoPedroDev added the bug Something isn't working label Jan 27, 2025
@JaoPedroDev
Copy link
Contributor Author

Okay, upon further fiddling I discovered something interesting, having the two screen aligned by the bottom cause the issue, but aligning them by the top makes Kando the size properly.

This way causes the problem.
Image

This way does not.
Image

So maybe the problem is related with screen coordinates?

@Schneegans
Copy link
Contributor

Hi there! Could you try what I wrote in #347 (comment) and report any findings here?

@JaoPedroDev
Copy link
Contributor Author

I didn't find any negative numbers or something wrong with the window position values, but the height of the screen did change when I change the second screen alignment.

Position where Kando works fine.
Image
This position reported this:

Window position:  [ 1685, 314 ]  Window's Screen:  { x: 1360, y: 32, width: 1920, height: 1048 }

Position where Kando gets wrong size.
Image
This position reported this:

Window position:  [ 1682, 314 ]  Window's Screen:  { x: 1360, y: 339, width: 1920, height: 741 }

Tested with Electron version 31.7.7

@Schneegans
Copy link
Contributor

Interesting, then it looks like an Electron bug. Could you try this with the latest Electron version? Also, I would assume that it does not happen on X11?

@JaoPedroDev
Copy link
Contributor Author

Latest version of Electron has the same bug.

On X11 it's working properly.
Both alignments of the second screen gives the same output on Electron Fiddle:

Window position:  [ 1576, 456 ]  Window's Screen:  { x: 1360, y: 0, width: 1920, height: 1080 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants