diff --git a/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp b/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp index ec361eb751..d855880905 100644 --- a/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp +++ b/Source/Plugins/Plugin_GCPad/Src/GCPad.cpp @@ -657,7 +657,7 @@ bool IsFocus() int Revert; XGetInputFocus(GCdisplay, &FocusWin, &Revert); XWindowAttributes WinAttribs; - XGetWindowAttributes (WMdisplay, GLWin, &WinAttribs); + XGetWindowAttributes (GCdisplay, GLWin, &WinAttribs); return (GLWin != 0 && (GLWin == FocusWin || WinAttribs.override_redirect)); #else return true;