Bug 2328041 - Anaconda GTK UI as Wayland native have visible window decorators
Summary: Anaconda GTK UI as Wayland native have visible window decorators
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: kwin
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: KDE SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-22 15:01 UTC by Jiri Konecny
Modified: 2025-02-26 13:18 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
WAYLAND_DEBUG=1 output (136.15 KB, text/plain)
2024-11-22 16:05 UTC, Jiri Konecny
no flags Details


Links
System ID Private Priority Status Summary Last Updated
KDE Software Compilation 496582 0 NOR UNCONFIRMED KWin ignores request by Fedora installer to not draw decorations 2024-11-22 15:20:32 UTC

Description Jiri Konecny 2024-11-22 15:01:55 UTC
Anaconda got recently an update to switch it from XWayland to Wayland native application on Live ISO.

https://github.com/rhinstaller/anaconda/pull/5946
https://bodhi.fedoraproject.org/updates/FEDORA-2024-6aaa469862#comment-3819582

Reproducible: Always

Steps to Reproduce:
1. Download newest KDE Live ISO
2. If anaconda is lower version than `anaconda-42.15` please install newest version from bodhi link above
3. Run `liveinst` in the terminal to start newest Anaconda
Actual Results:  
Window decorators are visible.

Expected Results:  
Window decorators shouldn't be visible.

This seems to work correctly on Fedora Workstation. I tested the Workstation case on Rawhide after installing Anaconda from Bodhi and removing `anaconda-webui` package which prevents new Web UI to be started.


Anaconda is running under root if that means anything.

Comment 1 Neal Gompa 2024-11-22 15:06:44 UTC
For note, Fedora Workstation is built on GNOME, and GNOME Shell uses Mutter, which does not implement xdg-decoration or kde-decoration protocols. The latter is used by GTK to signal whether an application should be decorated.

According to Anaconda's GTK UI code, GTK should be signaling to KWin to not draw decorations: https://github.com/rhinstaller/anaconda/blob/e5be57a9623fd5056aea0b74634c22b7b2037ed4/pyanaconda/ui/gui/__init__.py#L522

The fact that it still is drawing it is odd. Other GTK applications (GNOME Boxes, GNOME ABRT) do not have this problem.

Comment 2 Neal Gompa 2024-11-22 15:20:33 UTC
Upstream KDE bug filed: https://bugs.kde.org/show_bug.cgi?id=496582

Comment 3 Jiri Konecny 2024-11-22 15:57:08 UTC
The easiest way to test this before newest anaconda gets through bodhi is:
1. Download KDE Live spin from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Spins/x86_64/iso/
2. sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-6aaa469862

Comment 4 Jiri Konecny 2024-11-22 15:57:55 UTC
The second command should be run in a VM running the donwloaded ISO:)

Comment 5 Jiri Konecny 2024-11-22 16:05:23 UTC
Created attachment 2059373 [details]
WAYLAND_DEBUG=1 output

Attaching stderr with WAYLAND_DEBUG=1

Comment 6 Nicolas Fella 2024-11-22 16:14:10 UTC
The log has 

[2220216.820] {Default Queue}  -> org_kde_kwin_server_decoration#31.request_mode(2)

which means it's requesting server-side decoration: https://wayland.app/protocols/kde-server-decoration#org_kde_kwin_server_decoration:enum:mode:entry:Server

This looks like an Anaconda/GTK problem to me

Comment 7 Aoife Moloney 2025-02-26 13:18:01 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.


Note You need to log in before you can comment on or make changes to this bug.