Bug 86919 - Writer loses focus when toggling between full screen mode
Summary: Writer loses focus when toggling between full screen mode
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: x86 (IA32) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks:
 
Reported: 2014-12-02 01:42 UTC by Geoff
Modified: 2018-07-10 07:25 UTC (History)
4 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 Geoff 2014-12-02 01:42:10 UTC
To reproduce:

  - Open a document.

  - Hit Ctrl+Shift+J to toggle fullscreen mode.

  - Repeat once or twice to toggle back and forth.

  - Writer will lose focus after two or three Ctrl+Shift+J presses.

(If you have other documents open in the background, they'll get toggled to full screen!)
Comment 1 Buovjaga 2015-03-06 11:49:18 UTC
After a couple of switchings in 4.4.1, the window disappeared and only the "Full screen" button was visible. Yet, another Ctrl+Shift+J brought it back.

With 3.5.0 and 4.2.0, the terminal window used to launch them might sometimes be overlaid on top, but focus was not lost.

Let's request a bibisect.

Ubuntu 14.10 64-bit 
Version: 4.4.1.2
Build ID: 40m0(Build:2)
Locale: en_US

LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735

Version: 4.2.0.4
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71
Comment 2 Matthew Francis 2015-03-18 06:02:02 UTC
Couldn't reproduce on Ubuntu 14.04 / lxde. Maybe window manager or timing dependent?
Comment 3 Geoff 2015-03-20 18:40:20 UTC
(In reply to Matthew Francis from comment #2)
> Couldn't reproduce on Ubuntu 14.04 / lxde. Maybe window manager or timing
> dependent?

Interesting! This happens on my 32-bit machine but not my 64-bit machine. Both are running Ubuntu 14.04.1 LTS

I don't think it's a timing issue because even counting 3 seconds between switches causes the problem.
Comment 4 Buovjaga 2015-05-18 10:50:14 UTC
*** Bug 91282 has been marked as a duplicate of this bug. ***
Comment 5 Michael 2015-05-25 12:00:31 UTC
I can reproduce this in Fedora 21 x64 + KDE

Pressing Ctrl+Shift+J multiple times soon yields the focus to a different window  (which starts reacting to the C+S+J)

I had to skip a couple at the end of the bibisect because of this message for 4.0.1.1 and 4.0.1.2:

$ ./opt/program/soffice --writer
no suitable windowing system found, exiting.

$ git bisect log
# bad: [60af19e4996c07eaa9d1f7e1e908cfe211df368b] libreoffice-4.4.2.2
# good: [12aa7e702b7d1f1a9de579e5293779dc84ef42e7] libreoffice-4.0.0.1
git bisect start 'libreoffice-4.4.2.2' 'libreoffice-4.0.0.1'
# bad: [36353d91e5d3100adeabf0bed4f69dd3777c5172] libreoffice-4.2.1.1
git bisect bad 36353d91e5d3100adeabf0bed4f69dd3777c5172
# bad: [c441489752b02cd15272928d95aeec76583d2ca7] libreoffice-4.1.0.4
git bisect bad c441489752b02cd15272928d95aeec76583d2ca7
# bad: [3f66624caf35f7f60577c4e0b2aaabeb01cc7fb4] libreoffice-4.0.4.1
git bisect bad 3f66624caf35f7f60577c4e0b2aaabeb01cc7fb4
# bad: [164bf9eaf4beede6b49596ce5830c7fd0827a613] libreoffice-4.0.2.1
git bisect bad 164bf9eaf4beede6b49596ce5830c7fd0827a613
# good: [0ba977b7cb4d79c2452c40d20b59daae51d91f82] libreoffice-4.0.0.3
git bisect good 0ba977b7cb4d79c2452c40d20b59daae51d91f82
# skip: [79d7963fbd1c79f3db20d072aa15e34e42caa875] libreoffice-4.0.1.2
git bisect skip 79d7963fbd1c79f3db20d072aa15e34e42caa875
# skip: [525c5fcffd736713ab88900699bd96c3b8c724a1] libreoffice-4.0.1.1
git bisect skip 525c5fcffd736713ab88900699bd96c3b8c724a1
# only skipped commits left to test
# possible first bad commit: [164bf9eaf4beede6b49596ce5830c7fd0827a613] libreoffice-4.0.2.1
# possible first bad commit: [79d7963fbd1c79f3db20d072aa15e34e42caa875] libreoffice-4.0.1.2
# possible first bad commit: [525c5fcffd736713ab88900699bd96c3b8c724a1] libreoffice-4.0.1.1
Comment 6 Robinson Tryon (qubit) 2015-12-13 11:10:54 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2017-01-03 19:50:10 UTC Comment hidden (obsolete)
Comment 8 Buovjaga 2018-05-25 10:38:37 UTC
On a different Linux system now, tested with kde4 and gtk3 backends, but did not run into any glitch.

Might be time for Geoff and Michael to re-test.

Arch Linux 64-bit
Version: 6.1.0.0.alpha1+
Build ID: eeaf6dee2d278eaa037d95a756ad0ffab3314bc2
CPU threads: 8; OS: Linux 4.16; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on May 24th 2018
Comment 9 Buovjaga 2018-07-08 17:24:48 UTC
Bibisected on Ubuntu 14.04 with 43all. The important thing was to toggle it many times so a certainty could be established (even dozens). The focus-losing appeared between last35onmaster and oldest. The range: https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=2175576c120806f8415be7ab2051ba639a18f564...a39f4e5b57f5e518cc1ba09d5801da07b52fbaa5

Yet, like I said in comment 8, would be nice to hear the current status from Geoff and Michael.
Comment 10 Michael 2018-07-09 16:09:24 UTC
I can still reproduce this with Fedora 27 x64 + KDE, against the packaged version of LO

Version: 5.4.7.2
Build ID: 5.4.7.2-3.fc27
CPU threads: 8; OS: Linux 4.16; UI render: default; VCL: gtk3; 
Locale: en-CA (en_CA.UTF-8); Calc: group
Comment 11 Buovjaga 2018-07-09 16:24:36 UTC
(In reply to Michael from comment #10)
> I can still reproduce this with Fedora 27 x64 + KDE, against the packaged
> version of LO
> 
> Version: 5.4.7.2
> Build ID: 5.4.7.2-3.fc27
> CPU threads: 8; OS: Linux 4.16; UI render: default; VCL: gtk3; 
> Locale: en-CA (en_CA.UTF-8); Calc: group

What about some super fresh pre-release or daily appimage from https://libreoffice.soluzioniopen.com/ ?
Comment 12 Michael 2018-07-09 16:44:09 UTC
With LibreOfficeDev-6.2.0.0.alpha0_2018-06-18-x86_64.AppImage, I can no longer reproduce the problem.
Comment 13 Buovjaga 2018-07-09 17:08:08 UTC
Thanks, I think this can be closed.
Comment 14 Geoff 2018-07-10 07:25:22 UTC
(In reply to Buovjaga from comment #13)
> Thanks, I think this can be closed.

Agreed. I'm running Version: 6.0.5.2
Build ID: 54c8cbb85f300ac59db32fe8a675ff7683cd5a16
and it's no longer a problem.

Thanks team!