Xbox controller does not work when operating and using the additional window which use “R-ALT”

after using the "R_ALT” key create an additional window, and use the mouse to operate in that window. The Xbox controller will not work until use the mouse click the main window.

How can I operate or set it up so that the Xbox controller can work all the time whether operate the main windows and additional window

thx!