fix: Remove activateWindow() call to fix focus warning

Widgets have Qt::WindowDoesNotAcceptFocus flag set so they don't
steal focus from the game. Calling activateWindow() on them
produces a warning.

Removed activateWindow() call since:
1. Widgets should not accept focus (they're overlays)
2. raise_() is sufficient to bring them to front
3. WindowDoesNotAcceptFocus is intentional for game overlay widgets
This commit is contained in:
LemonNexus 2026-02-15 16:19:00 +00:00
parent 84b73298e8
commit d73020db99
1 changed files with 1 additions and 2 deletions

View File

@ -1750,10 +1750,9 @@ class OverlayWindow(QMainWindow):
y = (screen.height() - 100) // 2
widget.move(x, y)
# Show and raise
# Show and raise (don't activate - widgets have WindowDoesNotAcceptFocus)
widget.show()
widget.raise_()
widget.activateWindow()
# Store reference to prevent garbage collection
if not hasattr(self, '_active_widgets'):