Skip to content
Browse files

Round alt-tab preview coordinates

  • Loading branch information...
1 parent f988794 commit bcdc584035127aaa87253779f63508c06732cf5d @dalcde dalcde committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 js/ui/altTab.js
View
8 js/ui/altTab.js
@@ -497,10 +497,10 @@ AltTabPopup.prototype = {
let diffX = (ir.width - or.width)/2;
let diffY = (ir.height - or.height)/2;
- childBox.x1 = or.x -diffX;
- childBox.x2 = or.x + or.width + diffX;
- childBox.y1 = or.y -diffY;
- childBox.y2 = or.y + or.height + diffY;
+ childBox.x1 = Math.round(or.x -diffX);
+ childBox.x2 = Math.round(or.x + or.width + diffX);
+ childBox.y1 = Math.round(or.y -diffY);
+ childBox.y2 = Math.round(or.y + or.height + diffY);
clone.allocate(childBox, 0);
};

0 comments on commit bcdc584

Please sign in to comment.
Something went wrong with that request. Please try again.