Skip to content

Commit

Permalink
Fix coords (they are parent relative)
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Nov 23, 2024
1 parent 7626a96 commit 32ea331
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 ());
get_relative_transformation_matrix (get_stage ()).transform_rect (rect);
get_parent ().get_relative_transformation_matrix (get_stage ()).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 32ea331

Please sign in to comment.