Bug 75471 - New windows stay in background, don't get focus
Summary: New windows stay in background, don't get focus
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Libreoffice (show other bugs)
Version: 4.2.1.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords: regression
: 85717 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-24 21:38 UTC by Luca
Modified: 2014-12-18 11:37 UTC (History)
6 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Luca 2014-02-24 21:38:41 UTC
1) Open a LibreOffice document (Writer, Calc) and minimize it

2) Open an Explorer window, or any file manager, and use it to launch another LibreOffice document

The second LibreOffice document runs maximized but stays in background, doesn't get the focus.

The first LibreOffice document to be launched, opens in foreground regularly.
Comment 1 Maxim Monastirsky 2014-02-25 10:31:37 UTC

*** This bug has been marked as a duplicate of bug 48300 ***
Comment 2 Mikeyy - L10n HR 2014-06-19 11:25:30 UTC
This shouldn't be marked as duplicate of bug 48300 when it's not same problem.
Bug reported here is REGRESSION. It worked as expected in LibreOffice 4.1.
Bug 48300 never worked that way and was reported for LibreOffice 3.5.1 more then 2 years ago.

Wanted to report this my self, but luckly found it's already reported. I switched to 4.2 from 4.1 week ago, and this annoys hell out of me.
Comment 3 Maxim Monastirsky 2014-06-19 12:24:59 UTC
(In reply to comment #2)
> This shouldn't be marked as duplicate of bug 48300 when it's not same
> problem.
Sorry but I don't get the difference. The reproduction steps and the result seems identical to me. Can you clarify please what exactly the difference?
Comment 4 Mikeyy - L10n HR 2014-06-19 12:46:00 UTC
Difference is, one in regression, other one is maybe enhancement (or bug, however you take it).

Bug 48300 talks about window focus when opening already open file for second time.

So:
1. Open windows explorer, maximise it so it shows full screen.
2. Open 1.ods - ODS window opens in focus (FOREGROUND), windows explorer isn't visible any more, it's in background
3. Bring windows explorer in foreground, maximised
4. Open 2.ods:
          - in 4.1 - ODS window opens in focus (FOREGROUND), windows explorer isn't visible any more, it's in background
          - in 4.2 - ODS window opens in BACKGROUND (not visible), windows explorer is still visible (this bug 75471)
5. From windows explorer open 1.ods again, same one you opened in step 2. (this is bug 48300)

As far as I can see, bug 48300 is fixed. With 4.2 double opened window open in foreground.
My configuration is LO 4.2.5.2 on Windows 7 64bit
Comment 5 Tomi Javanainen 2014-08-09 18:31:08 UTC
Confirmed
LO Version: 4.2.5.2
OS Win 8.1 Pro 64bit
Comment 6 Hanni Bunii 2014-09-05 21:34:41 UTC
Same here with 4.2.6.2 on Windows 7.
Comment 7 Teodor Constantinescu 2014-10-13 17:22:36 UTC
Same issue here, 4.2.5.2, Windows 7.
Comment 8 Maxim Monastirsky 2014-11-01 17:52:11 UTC
*** Bug 85717 has been marked as a duplicate of this bug. ***
Comment 9 MisterNeutron 2014-11-04 19:20:43 UTC
I'm seeing this as well, with 4.2.6.3 on fully-patched Win7/64. Simple way to reproduce:

1) open Windows Explorer
2) pull to one side so that the window occupies half the monitor width
3) double-click on whatever.ods
4) LibreOffice launches and opens whatever.ods maximized, but it remains behind Windows Explorer
5) Clicking on LibreOffice doesn't bring it to the front. Only closing Windows Explorer allows you to see whatever.ods.
Comment 10 tommy27 2014-11-04 19:28:39 UTC
don't change version field. it must indicate earliest version the bug has been seen
Comment 11 billy78 2014-11-05 17:06:59 UTC
(In reply to MisterNeutron from comment #9)
> I'm seeing this as well, with 4.2.6.3 on fully-patched Win7/64. Simple way
> to reproduce:
> 
> 1) open Windows Explorer
> 2) pull to one side so that the window occupies half the monitor width
> 3) double-click on whatever.ods
> 4) LibreOffice launches and opens whatever.ods maximized, but it remains
> behind Windows Explorer
> 5) Clicking on LibreOffice doesn't bring it to the front. Only closing
> Windows Explorer allows you to see whatever.ods.

I can confirm this (Win7 x64). Since I installed the first stable of 4.2 (and for all versions since that), if I double-click a file (odt, ods, odp), I see the splash screen of LO, but then explorer comes in front and LO goes behind it. This doesn't happen all the time, but quite often and it very frustrating! It's a bit different from the bug report of the OP, since it happens without having any other LO document opened and minimized.
Comment 12 Heiko Tietze 2014-12-15 12:21:24 UTC
Same for Linux (4.3.4.1) but not nightly build (4.5.0.0.alpha0+). I changed the target platform to "all".
Comment 13 Heiko Tietze 2014-12-18 09:31:52 UTC
4.3.2.2 and 4.3.4.1 under Windows 7 work as expected. No problems with z-order or focus.
Comment 14 Mikeyy - L10n HR 2014-12-18 10:36:22 UTC
(In reply to Heiko Tietze from comment #13)
> 4.3.2.2 and 4.3.4.1 under Windows 7 work as expected. No problems with
> z-order or focus.

I'm pretty sure that's not true. I use 4.3.5 and it's not coming into focus.

Open windows explorer, open 1 file, LO should come into focus. Now go back to windows explorer, open second file. LO doesn't come into focus, it stays in background.
Comment 15 Luca 2014-12-18 10:40:28 UTC
(In reply to Heiko Tietze from comment #13)
> 4.3.2.2 and 4.3.4.1 under Windows 7 work as expected. No problems with
> z-order or focus.

I run 4.3.4.1 under Windows 7 64 Home Premium. The bug is here and it's very very annoying. Did you follow the steps to reproduce as described?
Comment 16 Heiko Tietze 2014-12-18 11:37:18 UTC
I know what happens from Linux. We talked about this issue at the UX meeting yesterday. It's a bug and we can push to get it solved as most annoying, or we wait until 4.5 (nightly build works for me on Linux; haven't tried 4.4).

To double check OS: W7 Enterprise SP1, 64bit; ver reports "Microsoft Windows [Version 6.1.7601]"


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.