mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
UI: Linux - Tweak previous fix for menu focus to make it work correctly in some rarer scenarios
This commit is contained in:
parent
f9e4232105
commit
8d190963da
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ namespace Mesen.Windows
|
|||
if(!evtParams.IsPowerCycle) {
|
||||
Dispatcher.UIThread.Post(() => {
|
||||
_model.RecentGames.Visible = false;
|
||||
if(IsKeyboardFocusWithin || IsActive) {
|
||||
if(IsKeyboardFocusWithin || IsActive || ApplicationHelper.GetActiveOrMainWindow() == this) {
|
||||
this.GetControl<Panel>("RendererPanel").Focus();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue