Skip to content

Remove permanent window eventFilters on QtMenu, QtFloatLayer, and Composer - #2349

Merged
trissim merged 1 commit into
mainfrom
fix/remove-hot-window-event-filters
Nov 28, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/remove-hot-window-event-filters

Conversation

@trissim

@trissim trissim commented Nov 28, 2026

Copy link
Copy Markdown

Eliminates three permanent window.installEventFilter(self) hooks (QtMenu.eventFilter 5.2 -> 0.0, QtFloatLayer.eventFilter 5.2 -> 0.0, Composer.eventFilter 5.2 -> 0.0 Python calls/frame in shipped_run.py, -15.6 calls/frame total) by routing window resize and safe-area margin updates through QtToadApp._notify_viewport_geometry() -> Page.viewport_geometry_changed(), using Composer.resizeEvent for frame-width changes, and relying on QtMenu's existing open-only QApplication event filter. Lowers tools/frame_work_baseline.json (QtNameWaveDelegate.paint: 21.5 -> 19.0, measured 17.8). Verified: REL_IMPORTS=0, qt_inherit_ratchet.py 0/0/0/0/0 (Qt-only 47), 52 focused tests passed in 2.55s, full shipped_run.py passed.

@trissim
trissim merged commit 03fadeb into main Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant