Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 436749

Summary: Detached view keeps/regains focus after Show In on GTK
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, arunkumar.thondapu, daniel_megert, ericwill, sravankumarl
Version: 4.4Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard: stalebug
Bug Depends on: 312568    
Bug Blocks:    

Description Markus Keller CLA 2014-06-05 16:06:42 EDT
I20140604-2000 + fix for bug 435799

- new workspace
- paste into Package Explorer:

package p;
public class C {
	public static void main(String[] args) {
		System.out.println(42);
	}
}

- context menu > Show In > Navigator
- detach Package Explorer
- right-click "src" and choose Show In > Navigator

=> expected: workbench window active, "src" in Navigator focused
=> was: shells flicker, "src" is selected in Navigator, but in the end, the Package Explorer in the detached shell is active again.

On GTK2, the Show In menu stays empty in the Package Explorer until another shell is focused (context menu and Alt+Shift+W quick menu). On GTK3, the menu is OK (but the detached shell should still not keep the focus).
Comment 1 Dani Megert CLA 2014-06-06 03:13:23 EDT
(In reply to Markus Keller from comment #0)

Please see bug 435799 comment 10 for an explanation why this happens.


> On GTK2, the Show In menu stays empty in the Package Explorer until another
> shell is focused (context menu and Alt+Shift+W quick menu). On GTK3, the
> menu is OK (but the detached shell should still not keep the focus).

So, does the fix make it worse for GTK+ 2?

Do the other scenarios
- Show In in same window
- Show In in Open Resource
work?
Comment 2 Markus Keller CLA 2014-06-06 08:14:07 EDT
(In reply to Dani Megert from comment #1)
> So, does the fix make it worse for GTK+ 2?

No, the fix for bug 435799 just doesn't fix the scenario when trying to use "context menu > Show In" again after it failed to give focus to the other view. This is a minor issue for Luna.

> Do the other scenarios
> - Show In in same window
> - Show In in Open Resource
> work?

Yes.

This bug is about a wrong focus after Show In from a detached view. This problem was already present in 4.4RC3 if you executed Show In via shortcut (Alt+Shift+W).
In 4.3.2, the Show In menu was always empty in a detached view.

The focus problem could have the same reason as bug 312568 (see bug 312568 comment 30).
Comment 3 Alexander Kurtakov CLA 2015-07-07 06:53:36 EDT
I have checked after the dependent bug landed but still see the issues. Looks like transfering focus through windows is misbehaving too.
Comment 4 Eric Williams CLA 2019-02-07 11:47:59 EST
Still reproducible with today's I-build, GTK3.24, and Fedora 29.
Comment 5 Eclipse Genie CLA 2021-01-28 01:40:17 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.