Bug 1821145

Summary: Dropdowns on LibreOffice toolbar (font color, font style, background..etc) doesn't work on Wayland
Product: [Fedora] Fedora Reporter: Milan Zink <mzink>
Component: gtk3Assignee: Matthias Clasen <mclasen>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 32CC: caolanm, cosimo.cecchi, dtardon, erack, gnome-sig, mcatanza, mclasen, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-21 13:49:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screencast
none
Screencast - Flatpak (Works) none

Description Milan Zink 2020-04-06 07:20:06 UTC
Created attachment 1676500 [details]
Screencast

Description of problem:
Dropdowns on LibreOffice toolbar (font color, font style, background..etc) doesn't work on Wayland.

Version-Release number of selected component (if applicable):
libreoffice-*-6.4.2.2-1.fc32

How reproducible:
Try to modify selected text color in Writer or cell text in Calc

Steps to Reproduce:
1.Run latest Libreoffice under wayland
2.Try to format text with color
3.Dropdown on toolbar doesn't show up

Actual results:
Dropdown on toolbar doesn't show up.

Works without issues on X11. Gtk theme or LibreOffice layout are not causing problems - bahaviour is the same. Wayland doesn't work, X11 does.

Expected results:
Toolbar buttons works as expected

Additional info:
Screencast attached

Comment 1 Milan Zink 2020-04-06 07:25:58 UTC
Flatpak version works w/o issues. Attaching another screencast.

Comment 2 Milan Zink 2020-04-06 07:27:11 UTC
Created attachment 1676502 [details]
Screencast - Flatpak (Works)

Comment 3 Milan Zink 2020-04-06 08:01:43 UTC
Previous build - version 6.4.1 - works w/o issues.

Comment 4 Caolan McNamara 2020-04-06 09:56:27 UTC
a local 6.4.2.2 works fine under F31 so presumably there's some change, perhaps in gtk, in F32 which triggers this problem

Comment 5 Milan Zink 2020-04-06 10:38:54 UTC
Good catch.

This fixes the problem:

~ ❯ sudo dnf downgrade gtk3
Last metadata expiration check: 1:45:55 ago on Mon 06 Apr 2020 10:50:06 CEST.
Dependencies resolved.
===========================================================================================================================================
 Package                      Architecture                   Version                                  Repository                      Size
===========================================================================================================================================
Downgrading:
 gtk3                         x86_64                         3.24.16-1.fc32                           fedora                         4.7 M

Transaction Summary
===========================================================================================================================================
Downgrade  1 Package

Previous version: gtk3-3.24.17-1.fc32.x86_64

Comment 6 Caolan McNamara 2020-04-06 14:47:48 UTC
bisecting gtk seems to show https://gitlab.gnome.org/GNOME/gtk/-/commit/7f12dc2b66bba15b2e1c0ca077fa4ae58962ec0f as the point things broken for LibreOffice there seems to quite a mention of that commit in other bugs on gitlab

Comment 7 Milan Zink 2020-04-06 15:27:56 UTC
So let's move this to gGTK

Comment 8 Michael Catanzaro 2020-04-06 15:31:18 UTC
I assume this is https://gitlab.gnome.org/GNOME/gtk/-/issues/2572.

Comment 9 Caolan McNamara 2020-04-06 20:21:45 UTC
The windows seem to get stuck at the size of their contents at of the time gtk_widget_realize is called

Comment 10 Michael Catanzaro 2020-04-06 20:45:06 UTC
(In reply to Michael Catanzaro from comment #8)
> I assume this is https://gitlab.gnome.org/GNOME/gtk/-/issues/2572.

It's a separate issue. Jonas is working on a fix.

Comment 11 Caolan McNamara 2020-04-07 08:23:55 UTC
https://gitlab.gnome.org/GNOME/gtk/-/commit/f06ee688fe86ec8e1db1c515a7bf2ccc8decc310 does seem to make it all work again

Comment 12 Caolan McNamara 2020-04-21 08:28:34 UTC
Does it work now with gtk3 3.24.18 in F32, can we close this ?

Comment 13 Milan Zink 2020-04-21 13:38:11 UTC
Hi, gtk3 3.24.18 works fine in F32, Feel free to close this. Thank you very much