mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
Fix window focus detection on Linux
On Linux, the FindFocus method from wx simply doesn't work, it would on some environment report that dolphin has the focus while it doesn't have it. This is why an alternative method has to be used which is to set a focus flag whenever the render frame gets activated.
This commit is contained in:
parent
2536e37ec5
commit
2005b4430f
3 changed files with 15 additions and 55 deletions
|
@ -158,6 +158,7 @@ private:
|
|||
bool m_bNoDocking = false;
|
||||
bool m_bGameLoading = false;
|
||||
bool m_bClosing = false;
|
||||
bool m_bHasFocus = false;
|
||||
bool m_confirmStop = false;
|
||||
bool m_tried_graceful_shutdown = false;
|
||||
int m_saveSlot = 1;
|
||||
|
@ -306,8 +307,6 @@ private:
|
|||
void OnKeyDown(wxKeyEvent& event); // Keyboard
|
||||
void OnMouse(wxMouseEvent& event); // Mouse
|
||||
|
||||
void OnFocusChange(wxFocusEvent& event);
|
||||
|
||||
void OnHostMessage(wxCommandEvent& event);
|
||||
|
||||
void OnMemcard(wxCommandEvent& event); // Misc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue