Skip to content

Commit

Permalink
🔀 Merge pull request #246 from `MrKai77/238-loop-preview-triggered-wh…
Browse files Browse the repository at this point in the history
…en-resizing-dock-or-moving-widgets`

🐛 #238 Window snapping triggered when resizing dock or moving widgets
  • Loading branch information
MrKai77 authored Mar 10, 2024
2 parents a14ce20 + c6c459d commit d95fe2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Loop/Window Management/Window.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ class Window {

if self.role != .window,
self.subrole != .standardWindow {
print("This is an invalid window")
return nil
}

// Check if this is a widget
if let title = nsRunningApplication?.localizedName,
title == "Notification Center" {
print("This is an invalid window (is a widget)")
return nil
}
}
Expand Down

0 comments on commit d95fe2c

Please sign in to comment.