https://bugs.kde.org/show_bug.cgi?id=521505
Bug ID: 521505
Summary: Discover does not restore maximized / full window
height on Wayland; KWin window rules can force
position and width but not height
Classification: Applications
Product: Discover
Version First 6.6.5
Reported In:
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: discover
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Summary:
Discover does not restore maximized / full window height on Wayland; KWin
window rules can force position and width, although but not height
Product: Discover
Component: discover
Platform: Fedora RPMs
Description:
On a Wayland session with a single 2560x1440 display, Discover always opens at
2560x730 (full width, roughly half height) instead of maximized, regardless of
the size it had when last closed.
Steps to reproduce:
Start a Plasma Wayland session on a single 2560x1440 monitor.
Open Discover, maximize it (or resize it to full height), and close it.
Reopen Discover (from the launcher or via plasma-discover in a terminal, with
the desktop fully started).
Observed result:
Discover opens at 2560x730 — full width but about half the screen height — and
is not maximized. This happens consistently, including when launched from a
terminal after the session is fully up, so it is not a startup screen-detection
race.
The state file is written correctly. ~/.local/state/discoverstaterc contains:
[MainWindow]
0x0 screen: Window-Maximized=true
2560x1440 screen: Height=1412
2560x1440 screen: Width=2560
2560x1440 screen: Window-Maximized=true
sidebarWidth=252
So the saved geometry and maximized flag are correct, but they are not applied
on launch.
Expected result:
Discover should reopen at its previously saved size / maximized state
(2560x1440, maximized), as recorded in discoverstaterc.
Workarounds attempted (KWin window rule on org.kde.discover, exact match):
Force Position 0,0 → applied correctly (window moves to top-left), confirming
the rule matches the window.
Force Size 2560x1440 → width is applied, height is ignored (window stays 730 px
tall).
Force "Maximized horizontally" / "Maximized vertically" → vertical maximize has
no effect.
Force "Ignore requested geometry" → no effect on height.
The asymmetry is the key diagnostic: KWin can enforce horizontal size and
position on this window, but vertical size/maximization is ignored. This
suggests Discover commits a fixed surface height that the compositor honors,
overriding both the restored state and KWin rules.
System information:
Distribution: Fedora 44 KDE
Plasma version: 6.6.5
KWin version: 6.6.5
Discover version: 6.6.5
Qt version: 6.11.1
Session type: Wayland
Display: single monitor, 2560x1440
--
You are receiving this mail because:
You are watching all bug changes.