Loading

Paste #pbiqzlxfy

  1. void Scene::windowClosed(Toplevel *c, Deleted *deleted)
  2. {
  3.     assert(m_windows.contains(c));
  4.     if (deleted != NULL) {
  5.         // replace c with deleted
  6.         Window* w = m_windows.take(c);
  7.         w->updateToplevel(deleted);
  8. +        connect(deleted, &Toplevel::shadowChanged, this,
  9. +        [w] {
  10. +            w->invalidateQuadsCache();
  11. +        }
  12. +       );
  13.  
  14.         if (w->shadow()) {
  15.             w->shadow()->setToplevel(deleted);
  16.         }
  17.         m_windows[ deleted ] = w;
  18.     } else {
  19.         delete m_windows.take(c);
  20.         c->effectWindow()->setSceneWindow(NULL);
  21.     }
  22. }

Comments