mirror of
https://github.com/neon443/DockPhobia.git
synced 2026-03-11 06:49:12 +00:00
formatting, debug stuff
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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