Bug 150640 - Run away dialogs from document (GTK3?)
Summary: Run away dialogs from document (GTK3?)
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Wayland
  Show dependency treegraph
 
Reported: 2022-08-28 08:35 UTC by grofaty
Modified: 2022-10-09 18:36 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
run_away_document.png (18.84 KB, image/png)
2022-08-28 08:35 UTC, grofaty
Details
Linux_Super_key.jpg (105.84 KB, image/jpeg)
2022-08-28 17:54 UTC, grofaty
Details
Windows_Extension_Manager.jpg (8.68 KB, image/jpeg)
2022-08-28 17:54 UTC, grofaty
Details
RESULT OF TESTING (624.96 KB, image/png)
2022-09-11 05:50 UTC, Manikandan C
Details

Note You need to log in before you can comment on or make changes to this bug.
Description grofaty 2022-08-28 08:35:11 UTC
Created attachment 182052 [details]
run_away_document.png

1. Open Writer
2. Type in text: FIRST
3. Select typed in text and set very large font size like 80pt.
4. Press CTRL+N to open new Writer document.
5. Type in text: SECOND and set font size to 80pt.
6. Press CTRL+H to get find and replace dialog.
7. Press ALT+TAB. PROBLEM APPEARS. I expect to only see two icons for LibreOffice Writer, but there are three (see attachment).
8. Now if ALT+TAB is pressed and I click on Second document icon or find/replace icon and repress ALT+TAB there are still three icons displayed after repressing ALT+TAB. But if in ALT+TAB I select First document icon and press ALT+TAB again only two icons are displayed (FIRST and SECOND) and there is no find/replace icon in ALT+TAB selection (as expected).

I think that Find/Replace dialog should not produce extra icon in ALT+TAB selection.

Compare:
1. Tools | Options and dialog opens.
2. Press ALT+TAB and there are only two icons (FIRST and SECOND) and no dialog.


Additionally. Also the same problem in ALT+TAB additional icon displayed.
1. Edit | Track changes | Manage
2. Insert | Hyperlink
3. Insert | Cross-reference
4. Insert | Table of context and Index | Index Entry
5. Insert | Table of context and Index | Insert Bibliography Entry
6. Insert | Fields | More Fields
7. Form | Form navigator
8. Tools | Spelling
9. Tools | Word Count

Also new icon displayed in ALT+TAB but in this case it is maybe OK, because dialog is not tied to specific document:
1. Tools | Extension Manager
but if we compare the Help | About dialog is tied to the document from where the Help | About was selected.
I assume Tol+ols | Extension Manager should behave the same, to be tied to document that it was selected from.


I tested this on Ubuntu 22.04 using LibreOffice version:
1. 7.3.5.2 (official install)
2. 7.4.0.3 (flatpack)
3. latest master:

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: e3224c23f55f9fa489838bdf3b30b88a798ec33a
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Telesto 2022-08-28 12:35:25 UTC
No repro with Windows
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 1c1647e6ee252fe68d7406d01043e88f1721590f
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: CL
Comment 2 grofaty 2022-08-28 17:54:21 UTC
Created attachment 182056 [details]
Linux_Super_key.jpg
Comment 3 grofaty 2022-08-28 17:54:46 UTC
Created attachment 182057 [details]
Windows_Extension_Manager.jpg
Comment 4 grofaty 2022-08-28 17:59:54 UTC
Ubuntu 22.04:
I have check what happens when I press the Super key. In Ubuntu toolbar (at far left) there are three dots indicating three application windows are opened. Also in the center there are three windows displayed also indicating three application windows. In my humble opinion there should be no separate window for e.g. Find and Replace dialog.

Windows 10:
I have also performed some tests on Windows for all of the reported run-away dialogs on Ubuntu and I can't reproduce this problem tool. It may be Linux specific problem.

The only run-away window on Windows is Tools | Extension Manager. But as I have written in my previous post this may be intentional, because Extension Manager is not tied to specific document but instead it is related to whole LibreOffice Writer as a program.

On Windows I did test on:

Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: sl-SI (en_SI); UI: en-US
Calc: threaded
Comment 5 vengatesh 2022-09-11 05:37:34 UTC
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 465c3ad95059f0efa13c8027f7383c4d20a5b2ff
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Calc: threaded

Expected:
I think that Find/Replace dialog should not produce extra icon in ALT+TAB selection.

REPRODUCED
Comment 6 Manikandan C 2022-09-11 05:50:16 UTC
Created attachment 182355 [details]
RESULT OF TESTING

Test case result Screenshot ...
Comment 7 Manikandan C 2022-09-11 05:52:43 UTC
NOT REPRODUCED...

I TESTED THIS ON --Linux Mint 21 Cinnamon 

LIBREOFFICE VERSION:LibreOfficeDev-7.4.0.0.alpha0_2022-01-23-x86_64
Comment 8 raal 2022-09-18 16:33:07 UTC
no repro with Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: e46f9cc4b506c325cbe1060777bbc81fd1630f49
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Ubuntu 22.04, gnome 42.4, window system X11
Comment 9 grofaty 2022-09-19 06:26:15 UTC
I can still reproduce on Ubuntu 22.04 default Wayland window manager in master.

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 349e3af0c5dd5ed495ed61aab526f63c16f0e215
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 10 grofaty 2022-09-19 06:28:59 UTC
Now I see many of you have tested this on different Linux distributions and can't reproduce a problem. This may be Ubuntu specific problem or maybe Gnome specific or maybe Wayland specific.

Can someone please test on Ubuntu 22.04 default Wayland window manager and confirm or reject the problem.
Comment 11 raal 2022-09-19 15:52:10 UTC
(In reply to raal from comment #8)
> no repro with Version: 7.5.0.0.alpha0+ / LibreOffice Community
> Build ID: e46f9cc4b506c325cbe1060777bbc81fd1630f49
> CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
> Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
> Calc: threaded
> 
> Ubuntu 22.04, gnome 42.4, window system X11

I can reproduce with Wayland, works in X11

repro Version: 5.2.0.0.alpha1+
Comment 12 Caolán McNamara 2022-09-19 18:49:49 UTC
What all these dialogs have in common is that they aren't modal and you can interact with the window beneath them, so it's possible to switch focus between one of those dialogs and an application window without closing the dialog.

If you use gedit and launch the "find and replace" dialog from its hamburger menu does that behave the same as these dialogs? Or does it behave differently?
Comment 13 grofaty 2022-09-20 12:48:34 UTC
@Caolán, yes I see Find and Replace window in Gedit also get "detached" from main window. I don't know maybe this behavior is also wrong in Gedit.

For example in LibreOffice open two Writer documents and each one appears in Alt+Tab option. Now compare:
1. Find and Replace dialog (there are other dialogs described in my problem report)
2. Help | About dialog

At 1) It is detached from main program into separate option in Alt+Tab.
At 2) It is not detached from main program. It stays attached to the window it was launched from.

In my humble opinion I see dialog detached from main program if and only if there is some benefit, like dialog is used for multiple Writer files. But in my humble opinion if dialog _belongs_ to particular Writer document it should not be detach it looks to me like it is run away dialog.

Now compare behavior between Libreoffice on Windows and e.g. Ubuntu 22.04 (default: Gnome +Wayland). In Windows dialogs do not get detached, which is what I really expect.
Comment 14 Caolán McNamara 2022-09-20 13:42:00 UTC
as far as I can tell modal dialogs aren't shown in the application/window switcher, but non-modal ones always are. While gtk3 has a "skip-pager-hint" property this doesn't have any effect under wayland and is gone from gtk4 entirely. So, unless I miss something, there isn't a way for the application to do it with gtk+wayland without making the dialog modal.
Comment 15 grofaty 2022-10-09 11:57:37 UTC
I am not an expert, I just write what I see. Look into this sample:
1. Open Writer and type in FIRST.
2. Press CTRL+N to open another Writer window and type SECOND.
3. Help | About and "About" window stays at SECOND Writer document.
4. Alt+Tab and there are only two windows FIRST and SECOND and no third Help | About window.
5. Alt+Tab multiple times and you will notice that About dialog is tied to SECOND window.

Now do the same as above with Tools | Spelling and you will notice in Alt+Tab extra window.

It got to be something different with Help | About and Tools | Spelling dialogs.
Comment 16 Caolán McNamara 2022-10-09 18:36:49 UTC
The about dialog is a modal dialog, you can't interact with the window its attached to. The spelling dialog is a modeless dialog, you can interact with the windows it's associated with. I cannot see way to do what you want with modeless dialogs.