slint icon indicating copy to clipboard operation
slint copied to clipboard

Nightly lsp open live-preview with wrong sized window

Open NigelBreslaw opened this issue 6 months ago • 4 comments
trafficstars

Bug Description

In the past couple of weeks something changed and the live-preview opens first time far smaller than it should. The screenshot is the home automation demo. The release vscode live-preview works fine.

Image

Reproducible Code (if applicable)


Environment Details

  • Slint Version: 1.12
  • Platform/OS: MacOS
  • Programming Language:
  • Backend/Renderer:

Product Impact

Looks broken and you are forced to do extra clicks to resize the window.

NigelBreslaw avatar May 16 '25 10:05 NigelBreslaw

I can reproduce this. This could be the winit changes, although I can't reproduce with slint-viewer. May need to bisect.

tronical avatar May 16 '25 10:05 tronical

Ok, confirmed, commit 1c73144b09d263ebe20cf5e7cf500e7d4d5ac3b5 introduce this regression.

tronical avatar May 16 '25 11:05 tronical

I still have that on Linux :-/

I do see this when I start my application with WAYLAND_DISPLAY="" (which I needed to do for a long time due to winit not working in Wayland for me). When I keep the wayland display now, this works.

I guess we put this down to "linux graphics stack issues" and close this again?

hunger avatar Jun 02 '25 09:06 hunger

I couldn't reproduce this on X11. I think Simon couldn't reproduce it either. So that is maybe a different issue. If that is still an issue, please open a new issue with clear description on how to reproduce it

ogoffart avatar Jun 17 '25 06:06 ogoffart