Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix restoring focus after showing native modal dialogs in wxMSW
This fixes a regression introduced in d311c70 (Make native dialogs application-modal in wxMSW, 2022-04-01) which resulted in a focus loss after showing a modal dialog, as the parent window was still disabled when the native modal dialog was closed and so focus couldn't be set to any of its children and was simply lost as the result. Fix this by not disabling the dialog parent ourselves, but leaving handling the parent status to the native modal dialog, which already takes care of disabling the parent it uses when it is shown and re-enabling it when it is dismissed. Still use wxWindowDisabler to disable all the other top level windows, if any, to ensure that the modal dialogs are truly app-modal and not just window-modal, i.e. ensure that #11887 still remains fixed. Closes #22285.
- Loading branch information
Showing
7 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters