pointerA11yTimeout: Use notify handler instead of onUpdate callback
We either need to queue a repaint on opacity updates or we don't, whether the opacity change happens in an animation or not shouldn't matter. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654
This commit is contained in:
parent
9b8c0f7519
commit
bf497ed643
@ -17,6 +17,8 @@ class PieTimer extends St.DrawingArea {
|
|||||||
can_focus: false,
|
can_focus: false,
|
||||||
reactive: false
|
reactive: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.connect('notify::opacity', this.queue_repaint.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
vfunc_repaint() {
|
vfunc_repaint() {
|
||||||
@ -69,7 +71,6 @@ class PieTimer extends St.DrawingArea {
|
|||||||
{ opacity: 255,
|
{ opacity: 255,
|
||||||
time: duration / 1000,
|
time: duration / 1000,
|
||||||
transition: 'easeOutQuad',
|
transition: 'easeOutQuad',
|
||||||
onUpdate: () => this.queue_repaint(),
|
|
||||||
onComplete: () => this.stop()
|
onComplete: () => this.stop()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user