formatting, debug stuff

This commit is contained in:
neon443 committed 2025-05-30 16:07:07 +01:00
1 parent 4b0e0db186
commit 6c9d65f026
2 files changed
+6 -3

No files matched your search

+6
View File
@@ -127,12 +127,18 @@ class MouseTracker {
}
func start() {
#if DEBUG
skyHigh.show()
#endif
self.monitor = NSEvent.addGlobalMonitorForEvents(matching: .mouseMoved, handler: checkMouse)
self.running = true
print("started tracking")
}
func stop() {
#if DEBUG
skyHigh.hide()
#endif
if let monitor = monitor {
NSEvent.removeMonitor(monitor)
self.running = false
-3
View File
@@ -35,9 +35,6 @@ class SkyHigh {
window.ignoresMouseEvents = true
window.hasShadow = true
window.collectionBehavior = NSWindow.CollectionBehavior.canJoinAllSpaces.union(.stationary)
#if DEBUG
show()
#endif
}
func move(to: CGPoint) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.