Fix input focus in fullscreen on linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5125 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
609151c6e8
commit
a048ad52b4
|
@ -656,7 +656,9 @@ bool IsFocus()
|
||||||
Window FocusWin;
|
Window FocusWin;
|
||||||
int Revert;
|
int Revert;
|
||||||
XGetInputFocus(GCdisplay, &FocusWin, &Revert);
|
XGetInputFocus(GCdisplay, &FocusWin, &Revert);
|
||||||
return (GLWin != 0 && GLWin == FocusWin);
|
XWindowAttributes WinAttribs;
|
||||||
|
XGetWindowAttributes (WMdisplay, GLWin, &WinAttribs);
|
||||||
|
return (GLWin != 0 && (GLWin == FocusWin || WinAttribs.override_redirect));
|
||||||
#else
|
#else
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -403,7 +403,9 @@ bool IsFocus()
|
||||||
Window FocusWin;
|
Window FocusWin;
|
||||||
int Revert;
|
int Revert;
|
||||||
XGetInputFocus(WMdisplay, &FocusWin, &Revert);
|
XGetInputFocus(WMdisplay, &FocusWin, &Revert);
|
||||||
return (GLWin != 0 && GLWin == FocusWin);
|
XWindowAttributes WinAttribs;
|
||||||
|
XGetWindowAttributes (WMdisplay, GLWin, &WinAttribs);
|
||||||
|
return (GLWin != 0 && (GLWin == FocusWin || WinAttribs.override_redirect));
|
||||||
#else
|
#else
|
||||||
return true;
|
return true;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue