Skip to content

Commit

Permalink
Disconnect notify signal for clone window object when switching works…
Browse files Browse the repository at this point in the history
…pace
  • Loading branch information
yilozt committed Nov 12, 2023
1 parent 8cc376a commit 6d49a3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,14 @@ export default class RoundedWindowCorners extends Extension {
shadow_clone.y = clone.y + frame_rect.y - actor.y - paddings

// Should works well work Desktop Cube extensions
clone.connect (
const notify_id = clone.connect (
'notify::translation-z',
() => (shadow_clone.translation_z = clone.translation_z - 0.05)
)
const destroy_id = clone.connect ('destroy', () => {
clone.disconnect (notify_id)
clone.disconnect (destroy_id)
})

// Add reference shadow clone for clone actor, so that we
// can restack position of shadow when we need
Expand Down

0 comments on commit 6d49a3e

Please sign in to comment.