native-window-placement: Update for mutter API changes

This commit is contained in:
Florian Müllner
2015-03-17 19:46:05 +01:00
parent 0b18b15fee
commit 11b151e5e0
@@ -150,7 +150,7 @@ function enable() {
let rects = [];
for (let i = 0; i < clones.length; i++) {
// save rectangles into 4-dimensional arrays representing two corners of the rectangular: [left_x, top_y, right_x, bottom_y]
let rect = clones[i].metaWindow.get_outer_rect();
let rect = clones[i].metaWindow.get_frame_rect();
rects[i] = new Rect(rect.x, rect.y, rect.width, rect.height);
bounds = bounds.union(rects[i]);