Page MenuHomePhabricator

Do not send FocusChangedEvent when focus does not change
Closed, ResolvedPublic

Description

Focus events have been dropped in 2016.03.0 and added back as part of #19697. There is a minor issue with the implementation that has been discovered by the rigorous tests for our viewer.

Could you add an extra check in RenderingManager::SetRenderWindowFocus so that the event is not sent out if the focus is already on the same window?

Revisions and Commits

Event Timeline

kislinsk triaged this task as High priority.Aug 9 2016, 9:20 AM
kislinsk edited projects, added MITK (2016-11); removed MITK.
kislinsk added subscribers: kolbch, kislinsk.

@kolbch Didn't you work on this at the MITK Users Meeting this year together with @espak? Would be nice if you could take care of the task, thank you.

Yes, Christoph added back the focus events after the meeting. This issue came up later.

kolbch added a revision: Restricted Differential Revision.Aug 15 2016, 11:46 AM