mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06: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:
@ -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
|
||||
|
Reference in New Issue
Block a user