mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-22 00:21:43 +01:00
komorebi-core gets pub type PlatformMonitorId<P> = <P as MonitorPlatform>::Id, the monitor counterpart of PlatformWindowId (blocker 5 of core-model.md section 18). The Windows daemon aliases it (window::PlatformMonitorId, the shared MonitorId) and gets window::monitor_id_at_cursor() like KDE's, so monitor_idx_from_current_pos reads: ask the monitor id at the cursor, compare monitor.id == monitor_id, and only then the Windows-only stale-handle fallback (WindowsApi::monitor(monitor_id.to_hmonitor())). Same calls as before (cursor_pos, monitor_from_point), in the same order. Not a behaviour change. kfde: the alias is generic over MonitorPlatform; KDE and macOS can alias it the same way. Verified: tools/fast-check native (core tests), bare Windows clippy -D warnings, KDE check + lib tests, macOS fake-CC type-check PASS; e2e: commands (monitor-from-cursor commands), hotplug scenarios if any.