From 43d479c786719b5284563177eb6ea530619c541a Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Mon, 22 Nov 2010 22:18:30 +0100 Subject: [PATCH] Don't pass an (out) argument to meta_window_get_outer_rect() Mutter now has the needed (out) annotation, so we have to use the return value instead of passing a reference to a rectangle. --- js/ui/workspace.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 4194897ea..b7837e853 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -881,8 +881,7 @@ Workspace.prototype = { xCenter = xCenter * global.screen_width; - let rect = new Meta.Rectangle(); - metaWindow.get_outer_rect(rect); + let rect = metaWindow.get_outer_rect(); let buttonOuterHeight, captionHeight; let buttonOuterWidth = 0;