Skip to content

Commit

Permalink
Fix coords
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Nov 23, 2024
1 parent c5caceb commit 5798c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Widgets/WindowClone.vala
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public class Gala.WindowClone : Clutter.Actor {
close_button.allocate (close_button_alloc);

var rect = Graphene.Rect ().init (box.get_x (), box.get_y (), box.get_width (), box.get_height ());
var matrix = get_relative_transformation_matrix ((Clutter.Actor) get_stage ());
var matrix = get_parent ().get_relative_transformation_matrix (get_stage ());
matrix.transform_rect (rect);
var monitor_index = display.get_monitor_index_for_rect (Mtk.Rectangle.from_graphene_rect (rect, ROUND));
var monitor_scale = display.get_monitor_scale (monitor_index);
Expand Down

0 comments on commit 5798c65

Please sign in to comment.