Bug 460507

Summary: Stellarium scales wrong on start, but scales correctly when changing the scaling in kscreen while it runs
Product: [Plasma] kwin Reporter: postix <postix>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.26.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot
kWin Support Info
Stellarium log output on start

Description postix 2022-10-15 21:34:33 UTC
SUMMARY

I am not sure if this is an issue of Stellarium, kWin or Qt.

STEPS TO REPRODUCE
1.  Two screens, 4k@200% primary and 2k@100%
2.  Open Stellarium 1.0 on the primary screen

OBSERVED RESULT
Stellarium's window is displayed in the upper left quarter of the primary display.

While Stellarium is running, changing the scaling of the secondary screen to 200%, makes Stellarium become fullscreen on the primary.

Closing Stellarium and re-opening it again (using 200% scaling on each screens) results in the same issue: Stellarium again appears only in the upper left quarter. Changing the scaling of the secondary screen now back to 100%, "fixes" the issue again.

It works fine if there's only a single screen enabled.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20221014
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 6.0.1-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series
Stellarium 1.0
Comment 1 postix 2022-10-15 21:35:55 UTC
Created attachment 152869 [details]
Screenshot
Comment 2 postix 2022-10-15 21:36:09 UTC
Created attachment 152870 [details]
kWin Support Info
Comment 3 postix 2022-10-15 21:38:51 UTC
Created attachment 152871 [details]
Stellarium log output on start
Comment 4 postix 2022-10-15 21:44:30 UTC
I just noticed that this issue is indeed also present in case of a single monitor setup, where the primary screen scales with 200%.
Starting Stellarium displayes is in the upper left corner. Changing then the scaling in kscreen, magically makes the issue go away, until Stellarium restarted again.
Comment 5 Vlad Zahorodnii 2022-10-17 07:59:14 UTC
Please report this issue to stellarium developers.