Perpetual resize when dropping window between two monitors on X11

Open
#1,799 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust

Research direction

No source file or test is named in the report. Start by reproducing the resize loop on X11 with two monitors using different DPIs, then trace the window move and resize events; done means dropping the window between those monitors no longer causes continuous resizing.

Written by the indexing model from the issue text.

Description

B - bug DS - x11

It seems like there's an issue when a Window is dropped between two monitors with different DPIs, which leads to the window constantly resizing between the two sizes without any user interaction.

I'd assume this is because the new bigger size causes the window to get thrown back on the other screen, which changes its size again to then move it back on the original screen (which continues forever).

Additional information and a recording can be found in https://github.com/alacritty/alacritty/issues/4523.

@murarth I believe this isn't the first time an issue like this was reported, are you aware of this getting fixed in the past? Unfortunately I can't find anything.

Dominant language
Rust
Stars
6.2k
Forks
1.3k
Avg merge
2d 19h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-windowing/winit

All issues in rust-windowing/winit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.