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

Minimise to tray not working on Wayland, since Wayland has no concept of "iconised" windows (Upstream issue bug 1872790, unfixable?) #279

Closed
Alex9001 opened this issue Mar 12, 2024 · 8 comments

Comments

@Alex9001
Copy link

When using Wayland on Plasma 6 Betterbird does not have a tray icon showing and does not minimize to tray. I have minimize to tray enabled.

image

Works as it should in X11.

OS: Artix Linux
Kernel: 6.7.9-zen1-1-zen
DE: Plasma 6.0.1
WM: kwin

@Betterbird
Copy link
Owner

Copy of #111 (comment) follows:


If I see it correctly, Wayland isn't fully supported by the Mozilla platform, see all the "Depends on" in this meta bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=635134

That the window doesn't minimise is due to the fact that internally a "sizemodechange" is not received. We debugged this with another BB user, who in the end reported this upstream bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1872790

You can repeat the steps in the description of this bug, that is, paste
top.window.addEventListener("sizemodechange", () => console.log("sizemodechange received"))
into the error console and see what gets logged when minimising the window.


You will find that nothing gets logged, hence the app doesn't receive the signal that it was minimised, so it can't minimise itself to the tray. Sorry, blame it on the Mozilla platform.

@Betterbird
Copy link
Owner

I'm reopening this, so it's easier to find.

@Betterbird
Copy link
Owner

Betterbird commented Dec 1, 2024

Please note all the fine debugging we've done on the issue, see: #377 (comment).

TL;DR: Wayland doesn't report windows being minimised or iconised.

Further reading: https://gitlab.gnome.org/GNOME/gtk/-/issues/67

@Betterbird Betterbird changed the title Minimise to tray not working on Wayland, upstream issue bug 1872790 Minimise to tray not working on Wayland, since Wayland has no concept of "iconised" Windows (Upstream issue bug 1872790, unfixable) Dec 1, 2024
@Betterbird Betterbird changed the title Minimise to tray not working on Wayland, since Wayland has no concept of "iconised" Windows (Upstream issue bug 1872790, unfixable) Minimise to tray not working on Wayland, since Wayland has no concept of "iconised" windows (Upstream issue bug 1872790, unfixable) Dec 1, 2024
@Betterbird Betterbird changed the title Minimise to tray not working on Wayland, since Wayland has no concept of "iconised" windows (Upstream issue bug 1872790, unfixable) Minimise to tray not working on Wayland, since Wayland has no concept of "iconised" windows (Upstream issue bug 1872790, unfixable?) Dec 1, 2024
@Betterbird
Copy link
Owner

@Betterbird
Copy link
Owner

No problems when restoring the window to "normal" (not maximised) size? See discussion at #377 (comment).

@Betterbird
Copy link
Owner

I was on 115.18 before, which worked just fine

No, it didn't, see long discussion in Issue #377. Turned out that 115 never ran under Wayland (#377 (comment) and above).

@Betterbird
Copy link
Owner

Build updated:
https://www.betterbird.eu/downloads/LinuxArchive/betterbird-128.5.0esr-bb18-latest-build3.en-US.linux-x86_64.tar.bz2

We're not going to post further updates, just use the latest "latest".

@Betterbird
Copy link
Owner

Let's close this now. We can open a new ticked for the graphic anomalies. I've asked @mfschumann whether he can reproduce this in his FlatPak build.

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

No branches or pull requests

2 participants