Bug 511287

Summary: QtQuick applications don't know when they are minimized
Product: [I don't know] kde Reporter: george fb <georgefb899>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description george fb 2025-10-28 20:01:58 UTC
The `visibility ` property doesn't change when the window is minimized.
It used to work but broke at some point, don't know when. Works on XFCE.

Demo app
```
import QtQuick

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    onVisibilityChanged: function(visibility) {
        console.log(visibility === Window.Minimized, visibility)
    }
}
```

STEPS TO REPRODUCE
1. run demo app
2. minimize window

OBSERVED RESULT
visibility === Window.Minimized is FALSE

EXPECTED RESULT
visibility === Window.Minimized is true

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20251024
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.4-1-default (64-bit)
Graphics Platform: Wayland
Comment 1 David Edmundson 2025-10-28 23:12:15 UTC
This is unfortunately expected on Wayland due to questionable upstream design decisions.
Comment 2 David Edmundson 2025-10-29 08:30:45 UTC
What was the end goal for your application?
Comment 3 george fb 2025-10-29 15:33:34 UTC
(In reply to David Edmundson from comment #1)
> This is unfortunately expected on Wayland due to questionable upstream
> design decisions.
By upstream, do you mean Qt or Wayland?

(In reply to David Edmundson from comment #2)
> What was the end goal for your application?
Pausing playback in Haruna