From d73020db99f344be7d00830942045a29a055b2af Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Sun, 15 Feb 2026 16:19:00 +0000 Subject: [PATCH] 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 --- core/overlay_window.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/overlay_window.py b/core/overlay_window.py index 8f14ee4..31940f5 100644 --- a/core/overlay_window.py +++ b/core/overlay_window.py @@ -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'):