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

On restore, LayoutSaver assigns zero width/height to windows from disconnected screen #478

Open
petrmanek opened this issue Mar 18, 2024 · 3 comments
Assignees
Milestone

Comments

@petrmanek
Copy link

Hi, I have a very specific bug report that concerns LayoutSaver and multiple-screen setups. This was reported to me by a user of my app, which relies on KDDW. Happens on the latest Linux Mint.

Steps to reproduce:

  1. Use a PC with more than 1 screen.
  2. Open the example app, create a layout that has widgets/windows in all screens.
  3. Save the layout to a file and close the app.
  4. Disconnect one of the screens from the PC.
  5. Open the example app again and restore the layout from file.

Expected output: The layout would be restored as much as possible, with windows/widgets from the unavailable screen moved to another available screen.

Actual outcome: The windows/widgets from now unavailable screen are assigned zero width and height, and are hard to find and change back to reasonable size.

@petrmanek
Copy link
Author

There has been no response to this bug report for nearly a year now. Can I please get someone to at least triage this, so that we have a timeline for when a fix can be expected? I am also happy to contribute a fix, if desirable. Please let me know. @iamsergio

@iamsergio iamsergio self-assigned this Jan 7, 2025
@iamsergio iamsergio added this to the v2.3 milestone Jan 7, 2025
@iamsergio
Copy link
Contributor

Hi, is this for an open-source app, which one ? If so I'll bump the priority.

Do you know if it happens only with the main window, or also with floating dock-widgets ? IIRC we have code to fix it for floating windows, need do double-check.

@petrmanek
Copy link
Author

is this for an open-source app, which one ? If so I'll bump the priority.

This is for Track Lab, a particle physics research software that is currently not open source. However, we are coincidentally planning to transition to open-source development later this year.

Do you know if it happens only with the main window, or also with floating dock-widgets ? IIRC we have code to fix it for floating windows, need do double-check.

Users have reported that this happens in both main windows and floating dock-widgets, however I have personally reproduced this only with main windows. If you wish, I can try to do it again with dock-widgets as well.

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