mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 23:27:10 +03:00
WindowSwitcher: Fix memory leak (#1972)
This commit is contained in:
parent
6141d2d402
commit
812caffd6f
@ -356,9 +356,9 @@ public class Gala.WindowSwitcher : CanvasActor {
|
|||||||
private void add_icon (WindowSwitcherIcon icon) {
|
private void add_icon (WindowSwitcherIcon icon) {
|
||||||
container.add_child (icon);
|
container.add_child (icon);
|
||||||
|
|
||||||
icon.motion_event.connect (() => {
|
icon.motion_event.connect ((_icon, event) => {
|
||||||
if (current_icon != icon && !handling_gesture) {
|
if (current_icon != _icon && !handling_gesture) {
|
||||||
current_icon = icon;
|
current_icon = (WindowSwitcherIcon) _icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
|
Loading…
Reference in New Issue
Block a user