Bug 456585 - In Thunderbird, "add theme" popup is not clickable on Wayland
Summary: In Thunderbird, "add theme" popup is not clickable on Wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-11 12:08 UTC by Edward Viesel
Modified: 2024-10-23 03:47 UTC (History)
2 users (show)

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


Attachments
Screenshot no. 1 (293.90 KB, image/png)
2022-07-22 07:49 UTC, Edward Viesel
Details
Screenshot no. 2 (89.09 KB, image/png)
2022-07-22 07:50 UTC, Edward Viesel
Details
Screenshot no. 3 (259.25 KB, image/png)
2022-07-22 07:50 UTC, Edward Viesel
Details
Screenshot no. 4 (256.59 KB, image/png)
2022-07-22 07:50 UTC, Edward Viesel
Details
Screenshot no. 5 (1002.09 KB, image/png)
2022-07-22 07:51 UTC, Edward Viesel
Details
Installation attempt with KDE Neon 25 (168.54 KB, image/png)
2022-07-26 10:14 UTC, Edward Viesel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edward Viesel 2022-07-11 12:08:42 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Log in with a Wayland session in Kubuntu 22.04
2. Open Thunderbird 91.9.1
3. Go to Extras > Add-ons and Themes > Themes >  [Symbol of cogwheel] > Install add-on from file (I hope this is the English equivalent to the German I'm using). 
4. Choose a theme's XPI file from your file manager and get ready to add the theme with the pop-up window "add".

OBSERVED RESULT
The pop-up window is partially outside the right margin of the laptop screen. You can just see the left 10 per cent or so. By making the main Thunderbird window smaller and pulling the pop-up to the left, you can gain access to the whole pop-up window. But you can't click on the button "Add", because the cursor turns into a horizontal two-pointed arrow. Any attempt to click on anything (e.g."Cancel") in the pop-up window does not work. Pressing the ENTER key on the keyboard does not work either. There is no way of getting the Thunderbird theme installed with this pop-up window.

EXPECTED RESULT
You should be able to 1) see the pop-up window in its entirety straight away; 2) be able to click on the button "add"; and 3) press the ENTER or ESC key; then the Thunderbird theme should be installed from a file on the computer's drive, or installation should be cancelled.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Workaround: Log out from Wayland session and log back on with X11 session. Then install the theme. The pop-up windows is in its normal position, and you can click on "Add", thereby adding the theme.
Comment 1 Nate Graham 2022-07-13 19:34:59 UTC
I can't reproduce the issue. Could you attach a screenshot of the issue when it's in the broken state, or better yet, a screen recording?

Also, is Thunderbird installed from the Kubuntu repos, or Flatpak, or Snap?
Comment 2 Edward Viesel 2022-07-22 07:49:56 UTC
Created attachment 150806 [details]
Screenshot no. 1
Comment 3 Edward Viesel 2022-07-22 07:50:14 UTC
Created attachment 150807 [details]
Screenshot no. 2
Comment 4 Edward Viesel 2022-07-22 07:50:33 UTC
Created attachment 150808 [details]
Screenshot no. 3
Comment 5 Edward Viesel 2022-07-22 07:50:57 UTC
Created attachment 150809 [details]
Screenshot no. 4
Comment 6 Edward Viesel 2022-07-22 07:51:17 UTC
Created attachment 150810 [details]
Screenshot no. 5
Comment 7 Edward Viesel 2022-07-22 08:00:41 UTC
Thunderbird is installed from Kubuntu repos. Not Flatpak. /home/USERNAME/snap only contains Chromium and Firefox.

I can't do screen recording, sorry. I uploaded 5 screenshots.

In screenshots 1 and 2 everything is still okay. Screenshot 3 shows the "broken state". The pop-up window with the green jigsaw piece is in the right margin of the screen and can't be moved. Screenshot 4 shows what I did: clicked on the diamond symbol "Wiederherstellen" (in German). The main Thunderbird window is resized, the pop-up window with the green jigsaw piece follows along to the left; it stays in the same place relative to the main window, however.

 What you don't see in screenshot 5: the cursor turns into a blue dot with an arrow head left and right within the pop-up window. You can't click on either "Cancel" or "Add".
Comment 8 Nate Graham 2022-07-22 16:43:58 UTC
Thanks. Could be an issue with how KWin handles subsurfaces; moving there for further investigation.

Any chance you could upgrade to Plasma 5.25 and see if it's fixed in that version?
Comment 9 Edward Viesel 2022-07-26 10:14:46 UTC
Created attachment 150919 [details]
Installation attempt with KDE Neon 25
Comment 10 Edward Viesel 2022-07-26 10:17:21 UTC
A note in advance: I upgraded five computers to Kubuntu 22.04 and installed the Wayland package and tried to install Thunderbird themes. Result:

(all computers have onboard graphics, no dedicated graphics card)

- 3 computers installed the themes perfectly.
- 1 computer (an old Intel notebook) installed the themes perfectly; however on opening Thunderbird, the main window is too big (i.e. the topmost panel with the „cross“ icon for closing the window is just outside the upper screen margin). If I pull the main window downward and click on the Maximise icon (diamond symbol; „Wiederherstellen“ in German), then the main window resizes correctly, and stays correct.
- 1 computer (the Lenovo AMD notebook under discussion here) did not install the theme, as reported above.

Now:
I created a USB drive with KDE Neon with KDE Plasma 25. I started Neon (in X11 mode) and installed Thunderbird via apt-get. Then I copied a Thunderbird XPI file (theme) to the Neon session. I tried to install the theme (in X11 mode). Installation worked perfectly. No problem.

I restarted the session as a Wayland session via an edit in /etc/sddm.conf.

(https://zren.github.io/2020/08/09/testing-wayland-in-a-neon-livecd)

Then I tried to install the theme as before. However, Thunderbird displayed the same behaviour as described in the first post above.

I have noticed the following:
The pop-up window with the „Add“ button (at the end of the theme installation process) is vertically aligned with a black jigsaw-piece symbol in the main window’s tabs panel.

If theme installation works properly, the black jigsaw-piece symbol and the pop-up window are vertically aligned (and "docked") along the RIGHT-HAND margin of the „Add“ pop-up window. So the pop-up window is always „in“ the main window. With the problem under discussion here, the alignment of black jigsaw-piece symbol and pop-up window is along the LEFT-HAND margin of the „Add“ pop-up window, it is „docked“ in this position. So it is only logical that most of it is „outside“ the main window., if the windows fills the screen completely.  This might mean that the cursor is always solely ready for „resizing“ and not for „activating buttons“.

I am attaching a screenshot of the final problem situation. You can also see the basic specs of the computer and the KDE Neon session via the Info Center window I had started.
Comment 11 Marco Martin 2022-07-28 14:11:34 UTC
do you know whether thunderbird is running trough wayland native or x11 version trough XWayland?
Comment 12 Vlad Zahorodnii 2024-09-23 10:58:58 UTC
Where can one get an xpi file? Also, is this issue reproducible in Plasma 6?
Comment 13 Bug Janitor Service 2024-10-08 03:47:19 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Bug Janitor Service 2024-10-23 03:47:13 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.