Snap to edges

Hello

I would like to maximize a window with snaping it to an edge.

  • Is there a way to test snap events and link it to a function?
    or
    -is there a way to bind an action to edge when a window hit the pan frames (like pointer but… a window… border.
    or
  • that’s not possible.