Bug 265634 - FocusOut should not be dispatched on widget dispose
Summary: FocusOut should not be dispatched on widget dispose
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.2 M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 262603
  Show dependency tree
 
Reported: 2009-02-20 07:38 EST by Benjamin Muskalla CLA
Modified: 2009-02-24 11:19 EST (History)
0 users

See Also:


Attachments
snippet (1.40 KB, application/octet-stream)
2009-02-20 07:39 EST, Benjamin Muskalla CLA
no flags Details
testcase (2.35 KB, patch)
2009-02-20 08:13 EST, Benjamin Muskalla CLA
no flags Details | Diff
simplified testcase (1.68 KB, patch)
2009-02-20 10:46 EST, Benjamin Muskalla CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Muskalla CLA 2009-02-20 07:38:22 EST
Disposing a widget while it has the focus leads to an FocusOut event. This is not the behavior of SWT (at least on GTK).
The event comes from Display#setFocusControl which is called during the dispose mechanism (see Control#releaseWidget).
Comment 1 Benjamin Muskalla CLA 2009-02-20 07:39:23 EST
Created attachment 126284 [details]
snippet

Small snippet to reproduce
Comment 2 Rüdiger Herrmann CLA 2009-02-20 07:48:57 EST
Could you provide a test case?
Comment 3 Benjamin Muskalla CLA 2009-02-20 08:13:12 EST
Created attachment 126288 [details]
testcase

Here we go with a testcase
Comment 4 Benjamin Muskalla CLA 2009-02-20 10:46:32 EST
Created attachment 126309 [details]
simplified testcase

Here is a much simpler testcase
Comment 5 Rüdiger Herrmann CLA 2009-02-24 11:19:15 EST
Fixed in CVS HEAD