Bug 511287 - QtQuick applications don't know when they are minimized
Summary: QtQuick applications don't know when they are minimized
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-28 20:01 UTC by george fb
Modified: 2025-10-29 15:33 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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