Describe the bug
Sometimes, the focus of the editor tabs is getting lost and it looks like the focus is on an secondary window.
To Reproduce
Steps to reproduce the behavior:
Only happens occasionally, but typically after rebooting the machine from hibernation.
Expected behavior
The focus is kept on the currently viewed Editor tab.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: 10x64
Version v1.1.6.2404
Additional context
Add any other context about the problem here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
The central reason why this glitch only happens occasionally, is that the drawing loop happens separated from the user interaction, i.e. the tabs search for the window focus and no focus can be found, therefore all tabs in a three-state tab group appear in the third (damped) state.
We can use a hack to access the main frame via wxTheApp() (requires that we add the main frame pointer to the app class), read the window title and use this information to compare with the tab caption. Will only work with the editor tabs, but that's sufficient for now.
DESCRIPTION
Describe the bug Sometimes, the focus of the editor tabs is getting lost and it looks like the focus is on an secondary window.
To Reproduce Steps to reproduce the behavior: Only happens occasionally, but typically after rebooting the machine from hibernation.
Expected behavior The focus is kept on the currently viewed Editor tab.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
(Do not write below this line)
DEVS' SECTION
ANALYSIS
The central reason why this glitch only happens occasionally, is that the drawing loop happens separated from the user interaction, i.e. the tabs search for the window focus and no focus can be found, therefore all tabs in a three-state tab group appear in the third (damped) state. We can use a hack to access the main frame via
wxTheApp()
(requires that we add the main frame pointer to the app class), read the window title and use this information to compare with the tab caption. Will only work with the editor tabs, but that's sufficient for now.IMPLEMENTATION STEPS
(see also our Wiki for implementation guidelines)
DOCUMENTATION STEPS
(see also our Wiki for further information)
*.NHLP
and*.NDB
files, if needed)*.NLNG
files, if needed)PULL REQUEST