Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wayland fixes #6018

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Wayland fixes #6018

wants to merge 3 commits into from

Conversation

aleasto
Copy link

@aleasto aleasto commented Nov 22, 2024

Wayland fixes

@pep8speaks
Copy link

pep8speaks commented Nov 22, 2024

Hello @aleasto! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 35:1: E402 module level import not at top of file

Comment last updated at 2024-11-27 17:56:49 UTC

@Conan-Kudo
Copy link
Contributor

@jkonecny12 this needs to be backported to rhel-10 branch once merged as well.

@M4rtinK M4rtinK added the manual testing required This issue can't be merged without manual testing label Nov 25, 2024
@jkonecny12
Copy link
Member

jkonecny12 commented Nov 26, 2024

Tested on Workstation (with GTK UI), KDE and Xfce Live ISOs. Everything seems to be working just fine.

EDIT: Tested also in boot.iso and also works fine.

@jkonecny12
Copy link
Member

/kickstart-test --testtype smoke

@jkonecny12
Copy link
Member

/kickstart-test --testtype smoke

@jkonecny12
Copy link
Member

Hi @aleasto our tests failed on this message:

10:26:59,558 DEBUG anaconda:anaconda: misc: GLib: #012(anaconda:2630): Gtk-#033[1;35mCRITICAL#033[0m **: #033[34m10:26:59.551#033[0m: gtk_widget_set_child_visible: assertion '!_gtk_widget_is_toplevel (widget)' failed

I'm not sure if this is critical or not, I know that we are already blocking some of these messages. Do you know if it is safe to ignore?

jkonecny12 added a commit to jkonecny12/kickstart-tests that referenced this pull request Nov 27, 2024
Introduced by changes in:
rhinstaller/anaconda#6018

Ignores this message:
```
10:26:59,558 DEBUG anaconda:anaconda: misc: GLib: rhinstaller#12(anaconda:2630): Gtk-rhinstaller#33[1;35mCRITICAL#033[0m **: rhinstaller#33[34m10:26:59.551#033[0m: gtk_widget_set_child_visible: assertion '!_gtk_widget_is_toplevel (widget)' failed
```
@jkonecny12
Copy link
Member

/kickstart-test --kstest-pr 1343 --testtype smoke

@Conan-Kudo
Copy link
Contributor

It is probably safe to ignore, if the code has the correct impact. It seems to be complaining about setting the decorations to be invisible not being possible for non-windows, which is fine (we don't want dialogs to have no decorations).

Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should try to resolve the test issue other way than ignoring the error.

Setting decorated=false doesn't do what advertised, in Wayland at least.
Gtk3 will request server-side-decorations unless a titlebar is set.

We can set any widget as titlebar, because set_decorated(False) makes it
invisible. I'm using GtkDrawingArea as a low-overhead widget.
Gdk on Wayland uses prgname as the app id.
Set it to match the desktop filename.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f42 Fedora 42 manual testing required This issue can't be merged without manual testing port to RHEL10
Development

Successfully merging this pull request may close these issues.

5 participants