[Libreoffice-bugs] [Bug 125478] New: Non modal custom dialogs don't work as expected with gtk3 backend

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri May 24 14:35:33 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=125478

            Bug ID: 125478
           Summary: Non modal custom dialogs don't work as expected with
                    gtk3 backend
           Product: LibreOffice
           Version: 6.2.4.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: roland65 at free.fr

Created attachment 151660
  --> https://bugs.documentfoundation.org/attachment.cgi?id=151660&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190524/cb0f6bca/attachment.html>


More information about the Libreoffice-bugs mailing list