Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 212312 - Invisible Shell active after setting invisible in Activate listener
Summary: Invisible Shell active after setting invisible in Activate listener
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-07 18:16 EST by Markus Keller CLA
Modified: 2022-01-23 17:12 EST (History)
1 user (show)

See Also:


Attachments
SnippetHideShellInActivate.java (2.94 KB, text/plain)
2007-12-07 18:16 EST, Markus Keller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2007-12-07 18:16:38 EST
Created attachment 84790 [details]
SnippetHideShellInActivate.java

I20071204-1547

Run the attached snippet and press the button. A second shell is made visible but not activated. A display filter for SWT.Activate is installed, which closes the second shell and opens a third shell. When you now click into the second shell, it becomes invisible, but it stays the active shell.

The snippet writes the active shell and focus control to stdout every 500ms:
- initial and after button pressed:
Shell {shell}    Button {Show}
- after click into shell2:
Shell {shell2}    Text {}
=> shell2 is active, but that shell is not visible any more
=> expected: invisible shell2 should not be the active shell. shell3 should be active after the click.

- after click into shell3:
Shell {shell3}    Text {}
- after pressing the Esc key, no shell is active any more:
null    null
=> expected: parent shell should take over focus
Comment 1 Steve Northover CLA 2008-04-21 16:09:51 EDT
Is this burning you?
Comment 2 Markus Keller CLA 2008-04-24 08:37:33 EDT
> Is this burning you?

No, current workaround is good enough (we explicitly force focus on shell3 when we replace hover shells).
Comment 3 Steve Northover CLA 2008-04-24 11:02:09 EDT
Did you try asyncExec()?
Comment 4 Markus Keller CLA 2008-04-24 11:20:47 EDT
> Did you try asyncExec()?

Right, I looked at our code again, and found that we indeed use an asyncExec in this scenario (added for bug 212392). Shell#forceActive() alone would not have helped.


(In reply to comment #0)
> - after pressing the Esc key, no shell is active any more:
> null    null
> => expected: parent shell should take over focus

This works as expected in HEAD.
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:18:28 EDT
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.

If you have further information on the current state of the bug, please add it. 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.
Comment 6 Eclipse Genie CLA 2022-01-23 17:12:14 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.