Skip to content

Commit 3096a71

Browse files
committed
Use utility method
1 parent 32ea331 commit 3096a71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Widgets/WindowClone.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,7 @@ public class Gala.WindowClone : Clutter.Actor {
476476
var close_button_alloc = InternalUtils.actor_box_from_rect (close_button_x, -close_button_height * 0.33f, close_button_width, close_button_height);
477477
close_button.allocate (close_button_alloc);
478478

479-
var rect = Graphene.Rect ().init (box.get_x (), box.get_y (), box.get_width (), box.get_height ());
480-
get_parent ().get_relative_transformation_matrix (get_stage ()).transform_rect (rect);
479+
var rect = get_transformed_extents ();
481480
var monitor_index = display.get_monitor_index_for_rect (Mtk.Rectangle.from_graphene_rect (rect, ROUND));
482481
var monitor_scale = display.get_monitor_scale (monitor_index);
483482

0 commit comments

Comments
 (0)