From 0c65d9a9e74709a192568ddadc303cbba7da5c5a Mon Sep 17 00:00:00 2001 From: Mikhail Bodrov Date: Fri, 13 Jun 2025 12:07:52 +0300 Subject: [PATCH] misc: remove needless filter method in expoThumbnail --- js/ui/expoThumbnail.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/ui/expoThumbnail.js b/js/ui/expoThumbnail.js index 1585a1908b..43a64973d6 100644 --- a/js/ui/expoThumbnail.js +++ b/js/ui/expoThumbnail.js @@ -861,11 +861,12 @@ ExpoWorkspaceThumbnail.prototype = { let rearrangeTime = force ? REARRANGE_TIME_OFF/2 : REARRANGE_TIME_OFF; Main.layoutManager.monitors.forEach(function(monitor, monitorIndex) { - let iconCount = 0; - this.windows.filter(function(window) { - return monitorIndex === window.metaWindow.get_monitor(); - },this).forEach(function(window) { + this.windows.forEach(function(window) { if (window.inDrag) {return;} + + if (monitorIndex !== window.metaWindow.get_monitor()) { + return; + } window.refreshClone(false); window.showUrgencyState();