Skip to content

Commit

Permalink
✨ Make window snap event monitor global
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Jun 21, 2024
1 parent 0d6d911 commit 6b17438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Loop/Managers/WindowDragManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class WindowDragManager {
private var leftMouseUpMonitor: EventMonitor?

func addObservers() {
leftMouseDraggedMonitor = NSEventMonitor(scope: .all, eventMask: .leftMouseDragged) { _ in
leftMouseDraggedMonitor = NSEventMonitor(scope: .global, eventMask: .leftMouseDragged) { _ in
// Process window (only ONCE during a window drag)
if self.draggingWindow == nil {
self.setCurrentDraggingWindow()
Expand Down

0 comments on commit 6b17438

Please sign in to comment.