feat: support multiple Cursor windows in overlay
Renamed OverlayWindow to OverlayManager. Now discovers all on-screen windows for the Cursor PID and creates/reuses/hides overlay windows dynamically to match. Filters out tiny windows (<100px). Verified: detects 3 windows across monitors. Made-with: Cursor
This commit is contained in:
@@ -5,13 +5,13 @@ import time
|
||||
from Cocoa import NSApplication, NSRunLoop, NSDate
|
||||
|
||||
from cursor_flasher.config import Config
|
||||
from cursor_flasher.overlay import OverlayWindow
|
||||
from cursor_flasher.overlay import OverlayManager
|
||||
from cursor_flasher.detector import CursorDetector
|
||||
|
||||
app = NSApplication.sharedApplication()
|
||||
|
||||
config = Config()
|
||||
overlay = OverlayWindow(config)
|
||||
overlay = OverlayManager(config)
|
||||
detector = CursorDetector()
|
||||
|
||||
pid = detector._find_cursor_pid()
|
||||
|
||||
Reference in New Issue
Block a user