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() {
|
func start() {
|
||||||
|
#if DEBUG
|
||||||
|
skyHigh.show()
|
||||||
|
#endif
|
||||||
self.monitor = NSEvent.addGlobalMonitorForEvents(matching: .mouseMoved, handler: checkMouse)
|
self.monitor = NSEvent.addGlobalMonitorForEvents(matching: .mouseMoved, handler: checkMouse)
|
||||||
self.running = true
|
self.running = true
|
||||||
print("started tracking")
|
print("started tracking")
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() {
|
||||||
|
#if DEBUG
|
||||||
|
skyHigh.hide()
|
||||||
|
#endif
|
||||||
if let monitor = monitor {
|
if let monitor = monitor {
|
||||||
NSEvent.removeMonitor(monitor)
|
NSEvent.removeMonitor(monitor)
|
||||||
self.running = false
|
self.running = false
|
||||||
|
|||||||
@@ -35,9 +35,6 @@ class SkyHigh {
|
|||||||
window.ignoresMouseEvents = true
|
window.ignoresMouseEvents = true
|
||||||
window.hasShadow = true
|
window.hasShadow = true
|
||||||
window.collectionBehavior = NSWindow.CollectionBehavior.canJoinAllSpaces.union(.stationary)
|
window.collectionBehavior = NSWindow.CollectionBehavior.canJoinAllSpaces.union(.stationary)
|
||||||
#if DEBUG
|
|
||||||
show()
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func move(to: CGPoint) {
|
func move(to: CGPoint) {
|
||||||
|
|||||||
Reference in New Issue
Block a user