Bug 125478 - Non modal custom dialogs don't work as expected with gtk3 backend
Summary: Non modal custom dialogs don't work as expected with gtk3 backend
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
6.2.4.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-24 14:35 UTC by Roland Baudin
Modified: 2019-06-11 03:03 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Test document with a macro to run (11.36 KB, application/vnd.oasis.opendocument.text)
2019-05-24 14:35 UTC, Roland Baudin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Baudin 2019-05-24 14:35:33 UTC
Created attachment 151660 [details]
Test document with a macro to run

The attached document contains a macro that can be run by clicking on the 'Run macro' button of the document.

This macro creates and opens a simple *non modal* custom dialog with a 'Close' button. With gtk3 backend, it is not possible to close this custom non modal dialog when another *modal* dialog is open, while this works in Windows and MacOSX, or in Linux with gen or gtk backends.

Here is a detailed test case in Linux:

1. Launch LibreOffice Writer with gtk backend:

SAL_USE_VCLPLUGIN=gtk /opt/libreoffice6.2/program/swriter

2. Open test_document.odt (with macro execution rights) and click on the 'Run macro' button. A custom dialog opens and it is possible to close it by clicking on its 'Close' button.

3. With the custom non modal dialog open, open some other *modal* LibreOffice dialog, like 'Help / About Libreoffice' or 'File / Open...'. While that second dialog is open, it is still possible to close the non modal custom dialog by clicking on its 'Close' button. This is IMHO the expected behaviour.

4. Launch LibreOffice Writer with the gtk3 backend:

SAL_USE_VCLPLUGIN=gtk3 /opt/libreoffice6.2/program/swriter

5. Repeat step 3. Now the custom non modal dialog *cannot be closed* when another modal dialog is open at the same time. This is not the expected behaviour.

Note that step 3 also works the same with gen VCL backend, and on Windows and MacOSX.

This kind of non modal custom dialog is used in the TexMaths extension that I develop.


System: Ubuntu Linux 18.04.2, 64 bits
LO version 6.2.4.2, downloaded from www.libreoffice.org

A *fresh* LibreOffice profile was used for all tests.
Comment 1 Xisco Faulí 2019-06-10 16:05:08 UTC
Yes, sometimes we have different behaviours while interacting with the UI depending on the env used. In this case, GTK3 works like that in order to prevent crashes while closing LibreOffice if there is any modal dialog opened.
Comment 2 Roland Baudin 2019-06-10 16:28:16 UTC
I don't see why the behaviour should be different in GTK3? All VCL backends should behave the same, otherwise how could we develop and extension that works on all systems?