title: Tkinter: Detecting a window drag event
body: <p>I have an animation running in my window, which I would like to pause whenever the user drags the window, to ensure a smooth interaction.</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>root.bind("&lt;ButtonPress-1&gt;", lambda e: start_stop_animation(False))
  root.bind("&lt;B1-Motion&gt;", lambda e: start_stop_animation(False))
  root.bind("&lt;ButtonRelease-1&gt;", lambda e: start_stop_animation(self._is_running))
  </code></pre>
  
  <p>It seems that these calls do not bind to the title bar at all.</p>
  
  <p>I would like to do this without removing the title bar using <code>root.overrideredirect(True)</code>, unless there is a simple way of replacing it with a similar title bar capable of capturing these events.</p>