Skip to content

Commit e04c0d6

Browse files
author
thetarkus
committed
Fix clientGroup undefined error
1 parent e847760 commit e04c0d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contents/code/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* KWin Quick Tile Enhancements
2+
* KWin Quick Tile Enhancements 0.2.0
33
* @thetarkus, Mike Mob
44
* https://github.com/thetarkus/kwin-quick-tile-enhancements
55
*/
@@ -372,7 +372,7 @@ function getCenterPoint(client) {
372372

373373
// Default value at center screen if no grouped clients
374374
var halfHeight = workspace._clientArea.height / 2
375-
if (clientGroup.length < 0)
375+
if (typeof clientGroup[0] === 'undefined')
376376
return [workspace._clientArea.width / 2, halfHeight];
377377

378378
// Get inner corner point as the center point

0 commit comments

Comments
 (0)