| Summary: | Fix computation of viewerFocused property in FocusModel. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Matthias Wienand <matthias.wienand> |
| Component: | GEF MVC | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nyssen |
| Version: | 0.2.0 | ||
| Target Milestone: | 4.0.0 / 3.11.0 (Neon) M5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Matthias Wienand
I pushed the following changes to master: - Added IViewer#viewerFocusedProperty():ReadOnlyBooleanProperty and IViewer#isViewerFocused():boolean to access the "viewerFocused" state. - Added change listeners for the viewer's scene, that scene's focusOwner, and that focusOwner's focused state to keep the "viewerFocused" state up-to-date. - Removed the "viewerFocused" property from the FocusModel. - Removed the FXFocusTool as it only updated the "viewerFocused" property of the FocusModel. Reopen, because at least on Mac, the viewerFocus property is not properly updated in case the window looses focus. I pushed the following changes to origin/master: - Added listener to ensure that window focus events are properly reflected within the viewer's focused property. - Added a binding so that the value of the viewer focused property is now computed whenever the window's focus or the focus owner's focus changes. Matthias, can you please validate the behavior on Linux? It seems to be working well: when the viewer has focus and the window loses focus, the viewer focus is not displayed anymore; and when the window gains focus again, the viewer focus is also displayed again. As the viewer focus is computed correctly now, I resolve this ticket as fixed for 3.11.0 M5 (the code was released with M5 while this ticket was still open). |