mirror of
https://github.com/elementary/gala.git
synced 2024-08-18 03:20:46 +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) {
|
||||
container.add_child (icon);
|
||||
|
||||
icon.motion_event.connect (() => {
|
||||
if (current_icon != icon && !handling_gesture) {
|
||||
current_icon = icon;
|
||||
icon.motion_event.connect ((_icon, event) => {
|
||||
if (current_icon != _icon && !handling_gesture) {
|
||||
current_icon = (WindowSwitcherIcon) _icon;
|
||||
}
|
||||
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
|
Loading…
Reference in New Issue
Block a user