Bug 100150 - LibreOffice Font Selection Dropdown dysfunctional in Wayland with GTK3
Summary: LibreOffice Font Selection Dropdown dysfunctional in Wayland with GTK3
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Caolán McNamara
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Wayland GTK3
  Show dependency treegraph
 
Reported: 2016-05-31 05:07 UTC by Dan Loomis
Modified: 2016-11-17 13:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Loomis 2016-05-31 05:07:19 UTC
Running Version: 5.1.3.2 from Fedora 24 Beta Build ID: 5.1.3.2-6.fc24
The Font selection dropdown is working differently in Wayland.  When I left click Libreoffice will choose a font and make the change before I ever see a list.  If I left click and hold I can see the list but it's difficult to select anything while holding the click.   

When I right click the dropdown list is displayed and libreOffice will preselect a font.   This is a problem if the user is changing the font on a sheet say from a proprietary Windows font to an open source font.   

The expected behaviour of dropdown lists is that the list displays and lets the user select the option.  

Will retest this in X11 and post a followup.
Comment 1 Dan Loomis 2016-05-31 13:05:44 UTC
The font selection dropdown works as expected when running X11.   The dysfunctional behaviour is Wayland related.
Comment 2 Dan Loomis 2016-06-20 02:39:23 UTC
While running a test of another bug report
[djl@Antares ~]$ export SAL_USE_VCLPLUGIN=gtk
[djl@Antares ~]$ soffice
[djl@Antares ~]$ 
Font selection was functional when not using gtk3 while running Wayland.
Comment 3 Dan Loomis 2016-06-23 05:38:30 UTC
In a different bug report I was advised to try the following to isolate gtk3:
[djl@Antares ~]$ export SAL_USE_VCLPLUGIN=gtk
[djl@Antares ~]$ soffice
[djl@Antares ~]$ 

That test involved changing fonts.  

Now running Version: 5.1.4.2 Build ID: 5.1.4.2-1.fc24.  In Wayland With the above setting font selection worked as expected.   In Wayland using gtk3 the font dropdown is still dysfunctional.
Comment 4 Joel Madero 2016-07-04 05:25:49 UTC
I have no idea if this is our bug. Requesting input from experts
Comment 5 Jonas Hahnfeld 2016-11-01 19:01:41 UTC
I can confirm this with LibreOffice 5.2.2.2.0 from ArchLinux. However I observe this behaviour on all dropdowns in the UI.

Setting SAL_USE_VCLPLUGIN=gtk makes them work again. SAL_USE_VCLPLUGIN=gtk3 shows the following warnings in the console after clicking the dropdown:
(soffice:6944): Gdk-WARNING **: Window 0x2dcf960 is already mapped at the time of grabbing. gdk_seat_grab() should be used to simultanously grab input and show this popup. You may find oddities ahead.

(soffice:6944): Gdk-WARNING **: Window 0x2dcf960 is already mapped at the time of grabbing. gdk_seat_grab() should be used to simultanously grab input and show this popup. You may find oddities ahead.
Comment 6 Buovjaga 2016-11-16 11:36:04 UTC
NEW per comment 5. Experts gonna work it out.
Comment 7 Caolán McNamara 2016-11-17 13:14:21 UTC
all this should work in Fedora 25. I think it should also work by now with the Fedora 24 latest distro LibreOffice (5.1.6.2-1.fc24). Definitely works for me on Fedora 25 now and I remember I made a lot of grab changes to get this sort of thing to work right.