mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Restored files from old Mac, force pushing
This commit is contained in:
parent
5dd95228b8
commit
5040381840
126 changed files with 10431 additions and 67 deletions
18
DynamicIsland/extensions/MouseTracker.swift
Normal file
18
DynamicIsland/extensions/MouseTracker.swift
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
//
|
||||
// MouseTracker.swift
|
||||
// boringNotch
|
||||
//
|
||||
// Created by Richard Kunkli on 12/08/2024.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
extension NSScreen {
|
||||
static var screenWithMouse: NSScreen? {
|
||||
let mouseLocation = NSEvent.mouseLocation
|
||||
let screens = NSScreen.screens
|
||||
let screenWithMouse = (screens.first { NSMouseInRect(mouseLocation, $0.frame, false) })
|
||||
|
||||
return screenWithMouse
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue