Bug 430284 - KConfig restores wrong window position in vertical dual screen layout
Summary: KConfig restores wrong window position in vertical dual screen layout
Status: REPORTED
Alias: None
Product: frameworks-kconfig
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.76.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Matthew Dawson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-12 06:15 UTC by Guo Yunhe
Modified: 2020-12-12 06:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of dolphin restored window position off the screen (2.21 MB, image/jpeg)
2020-12-12 06:15 UTC, Guo Yunhe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guo Yunhe 2020-12-12 06:15:40 UTC
Created attachment 134023 [details]
Screenshot of dolphin restored window position off the screen

SUMMARY
I have a 4K screen on the top, and FHD screen on the bottom. In System Settings, they are in vertical layout, center aligned, with 150% scale factor. (In the past we have fixed a lot of weird issue with Qt widget positioning in HiDPI+Dual-Screen. Not sure if this is another one.)

STEPS TO REPRODUCE
1. Open Kate/Dolphin, don't maximum.
2. Move window into the bottom screen (smaller one, FHD).
3. Close the window.
4. Reopen and check if the window is in same position.

OBSERVED RESULT
Each time I reopen the app, window position a is move bit right and bottom, until it is partly off screen.

EXPECTED RESULT
the app should always open in the same position.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
When I open the app in top screen (bigger one, 4K), it can always restore the exact same position.
Comment 1 Guo Yunhe 2020-12-12 06:32:29 UTC
Apps that move their position a bit towards right and bottom each time when reopen:
- Dolphin
- Kate

Apps that always reopen in left top corner:
- Konsole
- Gwenview
- Filelight

Above issues only appears in the smaller screen. No problem when the window is in the bigger screen.

Apps I tested that don't have this issue:

- VS Code (Electron base)
- Telegram (C++/Qt/QML based)
- Git Cola (Python/Qt/Widgets based)
- GIMP (C++/GTK based)