First, open Windows Settings. To do so, open the Start menu and click the small “gear” icon, or press Windows+i on your keyboard. In Settings, click “Gaming.”
Under “Game Bar” settings, click the switch beneath “Enable Game Bar” until it is turned off. That will disable the Game Bar.
After that, close the Settings app. Try pressing Windows+G, and nothing will pop up. Even if you press the Xbox button on an Xbox controller, nothing will happen. The Game Bar has been fully disabled.
If you’d like to enable the Game Bar again, revisit the “Gaming” section in Windows Settings and flip the “Enable Game Bar” to the “On” position.
By default, if you have an Xbox 360 or Xbox One controller connected to your Windows 10 PC, pressing the Xbox button (the large circle in the center of the controller with an “x” on it) will bring up the Xbox Game Bar.
If you’d like to disable this, visit Windows Settings > Gaming, then uncheck the box beside “Open Xbox Game Bar using this button on a controller.”
Alternately, if you disable the Game Bar completely using the “Enable Game Bar” switch, then the Xbox button on your controller will no longer call up the Game Bar. But that also disables calling up the Game Bar using other methods (such as the Windows+G shortcut).