File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Widgets/MultitaskingView Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ public class Gala.WindowCloneContainer : ActorTarget {
383383 // https://projects.kde.org/projects/kde/kde-workspace/repository/revisions/master/entry/kwin/effects/presentwindows/presentwindows.cpp
384384
385385 // some math utilities
386- private static int squared_distance (Graphene . Point a, Graphene . Point b) {
386+ private static float squared_distance (Graphene . Point a, Graphene . Point b) {
387387 var k1 = b. x - a. x;
388388 var k2 = b. y - a. y;
389389
@@ -437,7 +437,7 @@ public class Gala.WindowCloneContainer : ActorTarget {
437437 var rect = window. rect;
438438
439439 var slot_candidate = - 1 ;
440- var slot_candidate_distance = int . MAX ;
440+ var slot_candidate_distance = float . MAX ;
441441 var pos = rect_center (rect);
442442
443443 // all slots
You can’t perform that action at this time.
0 commit comments