Skip to content

Get rid of annoying warnings in Wayland sessions - #832

Open
Photon89 wants to merge 2 commits into
masterfrom
wayland-warnings
Open

Get rid of annoying warnings in Wayland sessions#832
Photon89 wants to merge 2 commits into
masterfrom
wayland-warnings

Conversation

@Photon89

Copy link
Copy Markdown
Member

Shutter produces Gtk-CRITICAL warnings on Wayland:

gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed

This kind of warnings occurs on several occasions. This should get rid of them (hopefully all of them).

In particular:

  • set checkbutton active only after it is packed into the Gtk layout
  • use a 50ms timeout such that Wayland has enough time to map a widget
  • disable tray icon on Wayland

@DarthGandalf

Copy link
Copy Markdown
Member

disable tray icon on Wayland

why?

@Photon89

Photon89 commented Aug 18, 2026

Copy link
Copy Markdown
Member Author

Sorry, my bad, I meant to write, "legacy tray icon". According to AI, it wouldn't work anyway, only produce the warnings. I tested in KDE, the tray icon was still there. In Gnome, on the other hand, it wasn't there before either...

edit: to be more precise, in KDE it was the appindicator tray icon which doesn't properly show/hide the main window before and after the change. So at least in KDE Wayland the legacy tray icon seems to have never worked indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants