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:
Florian Müllner 2019-07-26 02:28:40 +02:00
parent 9b8c0f7519
commit bf497ed643

View File

@ -17,6 +17,8 @@ class PieTimer extends St.DrawingArea {
can_focus: false,
reactive: false
});
this.connect('notify::opacity', this.queue_repaint.bind(this));
}
vfunc_repaint() {
@ -69,7 +71,6 @@ class PieTimer extends St.DrawingArea {
{ opacity: 255,
time: duration / 1000,
transition: 'easeOutQuad',
onUpdate: () => this.queue_repaint(),
onComplete: () => this.stop()
});
}